lexrs v0.2.0
First public release of lexrs — a Rust-native rewrite of lexpy with Python bindings and a production-grade HTTP server.
Packages
| Package | Registry | Install |
|---|---|---|
pylexrs |
PyPI | pip install pylexrs |
lexrs |
crates.io | cargo add lexrs |
lexrs-server |
crates.io | cargo install lexrs-server |
What's included
Trie and DAWG — two lexicon data structures with a unified API: wildcard search (*, ?), prefix completion, and Levenshtein fuzzy search. Up to 100× faster than the pure-Python lexpy for insertion and search.
Python bindings — pylexrs ships pre-built wheels for Python 3.11–3.14 on Linux, macOS, and Windows. No Rust toolchain needed. Existing lexpy code migrates by changing one import line.
HTTP server — lexrs-server compiles to two binaries: a writer that accepts word ingestion and compacts deltas into versioned snapshots, and a reader that serves search queries from a DAWG and hot-reloads new snapshots without downtime. Readers scale horizontally; coordination is handled via Consul KV.