litl/backoff
Python library providing function decorators for configurable backoff and retry observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4495
- days_rel: n/a
- days_push: 853
- n_releases_24m: 0
Adoption not part of the score
2694 stars · 155 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library providing function decorators for configurable backoff and retry logic. It supports both synchronous functions and asyncio coroutines, retrying on specified exceptions with strategies like exponential backoff.
Use cases
- retry failed HTTP requests with exponential backoff
- handle intermittent failures when calling external APIs
- poll a resource until content is available
- add retry logic to async coroutines
- give up after max tries or max time on flaky network calls
When to choose
- you need decorator-based retry with configurable backoff strategies in Python
- you want the same retry semantics for sync and asyncio code
- you need give-up conditions like max_tries or max_time
When to avoid
- you need circuit breaking or bulkhead patterns beyond simple retry
- you want retries based on response values rather than exceptions only
- you need a polyglot solution outside Python
Facets
library · maturity stable
middleware error-handling developer-tools apis python cross-platform retry backoff decorators asyncio exponential-backoff resilience automation
2 sources
- readme: https://github.com/litl/backoff · fetched 2026-08-28 · 8fbde1632ef4
- registry_pypi: https://pypi.org/pypi/backoff/json · fetched 2026-08-29 · 2a7ce7fab9fa
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| litl/backoff | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem