Comparison
django-ratelimit vs rush vs throttled-py vs token-bucket
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Cache-based rate-limiting for Django.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install django-ratelimitA library for throttling algorithms
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install rush🔧 High-performance Python rate limiting library with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket & GCRA) and storage backends (Redis, In-Memory).
Actively maintained. Last release 3 months ago, commits in 8 of the last 26 weeks. A safe choice.
pip install throttled-pyVery fast implementation of the token bucket algorithm.
Maintained. Last release 6 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install token-bucketIn short
- django-ratelimit is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- rush looks abandoned: avoid it for new projects.
- token-bucket is the most used: 1.1M downloads a month.
- throttled-py is better maintained: Pythie’s Index 73 against 54.
- throttled-py is the newcomer: first released Mar 2025.
Side by side
| Metric | django-ratelimit | rush | throttled-py | token-bucket |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 20 | 13 |