Comparison
rstr vs xeger
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Generate 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, 43× more than xeger.
- rstr also has the best Pythie’s Index (47).
- rstr is growing fastest: downloads +15% over the last month.