Comparison
Levenshtein vs pylev vs pyxDamerauLevenshtein vs textdistance
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python extension for computing string edit distances and similarities.
Maintained. Last release 2 days ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install levenshteinA pure Python Levenshtein implementation that's not freaking GPL'd.
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install pylevpyxDamerauLevenshtein implements the Damerau-Levenshtein (DL) edit distance algorithm for Python in Cython for high performance.
Maintained. Last release 5 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pyxdameraulevenshteinCompute distance between the two texts.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install textdistanceIn short
- pylev looks abandoned: avoid it for new projects.
- textdistance is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- Levenshtein is the most used: 21.7M downloads a month, 8.1× more than textdistance.
- Maintenance is comparable: Levenshtein 62, pyxDamerauLevenshtein 52 on Pythie’s Index.
- Levenshtein is growing fastest: downloads +34% over the last month.
- Safe default for a new project: Levenshtein.
Side by side
| Metric | Levenshtein | pylev | pyxDamerauLevenshtein | textdistance |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 62 | Pythie’s Index: 17 | Pythie’s Index: 52 | Pythie’s Index: 17 |
| Verdict | Maintained | Likely abandoned | Maintained | Slowing down |
| Downloads / month | 21.7M | 890K | 78.3K | 2.7M |
| Downloads, month over month | +34% | -8% | +8% | +14% |
| GitHub stars | 400 | 100 | 259 | 3.5K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 292 | 10 | 6 | 71 |
| Last release | Dec 1, 2026 | May 30, 2021 | Oct 29, 2026 | Jul 16, 2024 |
| Releases, 12 months | 3 | 0 | 2 | 0 |
| Weeks with commits | 5 / 26 | 0 / 26 | 3 / 26 | 0 / 26 |
| Recent contributors | 7 | 6 | 6 | 9 |
| First release | Jan 2021 | Dec 2012 | Jul 2013 | May 2017 |
| Python versions | 3.11 – 3.15 | – | 3.11 – 3.15 | – |
| License | GPL-2.0-or-later | BSD-3-Clause | BSD-3-Clause | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.