jd/tenacity
Retrying library for Python observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 96
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 90.5
- age_days: 3674
- days_rel: 28
- days_push: 27
- n_releases_24m: 5
Adoption not part of the score
8764 stars · 346 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Tenacity is a general-purpose retrying library for Python that simplifies adding retry behavior to functions and code blocks. It supports configurable stop conditions, wait/backoff strategies, retrying on exceptions or result values, coroutines, and a context manager.
Use cases
- retry flaky network requests until they succeed
- add exponential backoff to API calls
- retry a function a limited number of attempts before giving up
- retry async coroutines on exceptions
- retry only specific exception types
- retry until a function returns an expected value
When to choose
- you need robust, configurable retry logic with backoff in Python
- you want a decorator-based API for retrying functions or coroutines
- you are migrating from the unmaintained retrying library
When to avoid
- you need distributed or cross-service retry coordination
- you want retries managed by infrastructure like a message queue or service mesh
- your use case is simple enough for a hand-written loop
Facets
library · maturity stable
error-handling concurrency developer-tools python retry backoff decorator resilience automation
3 sources
- readme: https://github.com/jd/tenacity · fetched 2026-08-28 · 1e3ed06e90fe
- homepage: http://tenacity.readthedocs.io · fetched 2026-08-29 · 4d62568f817f
- registry_pypi: https://pypi.org/pypi/tenacity/json · fetched 2026-08-29 · 9d9bf34c411a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jd/tenacity | main | 88 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem