Comparison
checkdigit vs luhn vs python-stdnum vs validate-docbr
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A check digit library for data validation
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install checkdigitGenerate and verify Luhn check digits
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install luhnPython module to handle standardized numbers and codes
Maintained. Last release 11 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install python-stdnumValidate brazilian documents.
Maintained. Last release 2 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install validate-docbrIn short
- checkdigit is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- luhn looks abandoned: avoid it for new projects.
- python-stdnum is the most used: 8.1M downloads a month, 10× more than checkdigit.
- validate-docbr is better maintained: Pythie’s Index 57 against 43.
- python-stdnum is growing fastest: downloads +31% over the last month.
Side by side
| Metric | checkdigit | luhn | python-stdnum | validate-docbr |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 16 | 11 |