Comparison
pycpfcnpj vs python-stdnum vs schwifty vs validate-docbr
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python module for brazilian register numbers for persons (CPF) and companies (CNPJ).
Maintained. Last release 10 months ago. Weaker on release cadence.
pip install pycpfcnpjPython 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-stdnumIBAN parsing and validation
Actively maintained. Last release 7 days ago, commits in 16 of the last 26 weeks. A safe choice.
pip install schwiftyValidate 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
- python-stdnum is the most used: 8.1M downloads a month, 5.2× more than schwifty.
- schwifty is better maintained: Pythie’s Index 91 against 43.
- python-stdnum is growing fastest: downloads +31% over the last month.
Side by side
| Metric | pycpfcnpj | python-stdnum | schwifty | validate-docbr |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 54 | Pythie’s Index: 43 | Pythie’s Index: 91 | Pythie’s Index: 57 |
| Verdict | Maintained | Maintained | Actively maintained | Maintained |
| Downloads / month | 80.2K | 8.1M | 1.5M | 242K |
| Downloads, month over month | +12% | +31% | +26% | +17% |
| GitHub stars | – | 611 | 261 | 483 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 6 | 77 | 0 | 11 |
| Last release | Jan 25, 2026 | Jan 4, 2026 | Nov 23, 2026 | Oct 1, 2026 |
| Releases, 12 months | 1 | 1 | 13 | 2 |
| Weeks with commits | – | 4 / 26 | 16 / 26 | 5 / 26 |
| Recent contributors | – | 24 | 14 | 7 |
| First release | Feb 2015 | Sep 2010 | Mar 2016 | Mar 2019 |
| Python versions | 3.8 – 3.14 | 3.8 – 3.14 | 3.11 – 3.15 | 3.10 – 3.14 |
| License | MIT | LGPL-2.0-or-later | MIT | 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.