Comparison
exrex vs rstr vs xeger
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Irregular methods for regular expressions
Low maintenance activity. Last release over 2 years ago, commits in 4 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install exrexGenerate random strings in Python
Maintained. Last release 13 days ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install rstrA library for generating random strings from a valid regular expression.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install xegerIn short
- xeger is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- rstr is the most used: 3.2M downloads a month, 6.4× more than exrex.
- rstr also has the best Pythie’s Index (47).
- exrex is growing fastest: downloads +19% over the last month.
Side by side
| Metric | exrex | rstr | xeger |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 30 | Pythie’s Index: 47 | Pythie’s Index: 19 |
| Verdict | Low maintenance activity | Maintained | Slowing down |
| Downloads / month | 501.4K | 3.2M | 75K |
| Downloads, month over month | +19% | +15% | +30% |
| GitHub stars | 961 | 101 | 137 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 54 | 56 | 7 |
| Last release | Nov 13, 2024 | Nov 19, 2026 | Aug 30, 2023 |
| Releases, 12 months | 0 | 1 | 0 |
| Weeks with commits | 4 / 26 | 1 / 26 | 0 / 26 |
| Recent contributors | 20 | 13 | 9 |
| First release | Sep 2012 | Jun 2013 | Feb 2015 |
| Python versions | 3.3 – 3.5 | 3.11 – 3.16 | 3.1 – 3.6 |
| License | AGPL-3.0 | BSD-3-Clause | BSD-3-Clause |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.