DAWG2-Python
Pure-python reader for DAWGs (DAFSAs) created by dawgdic C++ library or DAWG Python extension.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a specific problem well: reading DAWG files in pure Python. Install it if you have pre-built DAWG data and want to query it without compiled extensions or C dependencies. Not suitable if you need to create DAWGs or require the fastest possible CPython performance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a pre-built DAWG file created by the DAWG Python package or dawgdic C++ library; this package cannot create DAWGs.
- Low friction: single pure-Python dependency (typing-extensions), wheel distribution, and active maintenance with recent commits.
- Supports Python 3.8 through 3.13 and PyPy.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2025-02-17 (543 days) · last repo commit 2026-08-01
0 known vulnerabilities (OSV.dev, 2026-08-14) · 400,636 downloads/mo, #6,937 on PyPI
Alternatives
Verify before relying
pip install DAWG2-Python
from DAWG2-Python import DAWG
d = DAWG().load('words.dawg')
if 'word' in d:
print(d['word'])- Whether performance under CPython (stated as ~50x slower than PyPy) is acceptable for your use case.
- Compatibility with DAWG files created by specific versions of the dawgdic or DAWG libraries.
- Exact API compatibility scope with the original DAWG module beyond what the description states.
What it is and what it does
DAWG2-Python is a pure-Python reader for DAWG (directed acyclic word graph) files, a space-efficient data structure for storing and querying large sets of strings with common prefixes. It provides read-only access to DAWGs built by the dawgdic C++ library or the DAWG Python extension, without requiring compiled dependencies. The package aims for API compatibility with the original DAWG module where feasible, making it a drop-in replacement for loading and querying pre-built DAWGs.
The main use case is accessing DAWG data structures in pure Python environments—particularly under PyPy, where it performs well—or when you want to avoid the compilation overhead of C extensions. It supports prefix-based lookups, key iteration, and membership testing. The package is read-only by design; DAWGs must be created externally using the DAWG or dawgdic libraries.
Use it for
- Load and query large word lists or dictionaries built as DAWGs without C extension dependencies.
- Perform prefix-based searches on linguistic or dictionary data stored in DAWG format.
- Run DAWG lookups under PyPy for better performance than CPython without recompiling.
- Integrate DAWG-based data structures into pure-Python applications or libraries.
- Check membership and iterate over keys in pre-built DAWG files for NLP or spell-checking tasks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a specific problem well: reading DAWG files in pure Python. Install it if you have pre-built DAWG data and want to query it without compiled extensions or C dependencies. Not suitable if you need to create DAWGs or require the fastest possible CPython performance.
Install
dawg2-python on PyPI
Before you install
Low friction: single pure-Python dependency (typing-extensions), wheel distribution, and active maintenance with recent commits. Supports Python 3.8 through 3.13 and PyPy.
Requires a pre-built DAWG file created by the DAWG Python package or dawgdic C++ library; this package cannot create DAWGs.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install DAWG2-Python
from DAWG2-Python import DAWG
d = DAWG().load('words.dawg')
if 'word' in d:
print(d['word'])
Verify before relying
- Whether performance under CPython (stated as ~50x slower than PyPy) is acceptable for your use case.
- Compatibility with DAWG files created by specific versions of the dawgdic or DAWG libraries.
- Exact API compatibility scope with the original DAWG module beyond what the description states.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping-extensions |
| Maintenance | Actively maintained 543 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 400,636 / month, #6,937 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Linguistic |
Evidence: dawg2_python-0.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “dawg reader pure python”
- DAWG2-PythonRead-only access to DAWG (directed acyclic word graph) files created…
- DAWG-PythonReads DAWG (Directed Acyclic Word Graph) files created by the dawgdic…
- parquetReads Apache Parquet files in pure Python and outputs data as JSON or…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also DAWG-Python · asciidag · ipydagred3 · adagio · bigtree · pure-pcapy3 · toposort · textparser · apache-airflow-core · syllapy