Comparison
backoff vs reretry vs retry-async vs retrying
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Function decoration for backoff and retry
Archived. The repository is read-only: no more fixes or releases will come.
pip install backoffAn easy to use, but functional decorator for retrying on exceptions.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install reretrySlowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install retry-asyncRetrying
Low maintenance activity. Last release 16 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install retryingIn short
- backoff is archived: avoid it for new projects.
- reretry is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- retry-async is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- retrying is the most used: 25.8M downloads a month.
- retrying also has the best Pythie’s Index (37).
Side by side
| Metric | backoff | reretry | retry-async | retrying |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 4 | 26 |