Ross ROSS = Recommend OSS · open-source software intelligence for agents

hynek/stamina

Production-grade retries for Python observed · 2026-08-28

github.com/hynek/stamina · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

80/100

  • Activity 96
  • Release rhythm 47
  • 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: 198.0
  • age_days: 1433
  • days_rel: 142
  • days_push: 29
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1442 stars · 22 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

stamina is an opinionated Python library for retrying failed operations with production-safe defaults like exponential backoff with jitter, retry limits, and async/Trio support. It wraps Tenacity with a simpler, misuse-resistant API and built-in instrumentation and testing hooks.

Use cases

  • retry failed HTTP requests in Python
  • add exponential backoff with jitter to flaky calls
  • retry async functions with asyncio or Trio
  • limit retries by count and total time
  • disable retries globally in tests
  • instrument retry attempts with Prometheus or structlog

When to choose

  • you want sensible, opinionated retry defaults without configuring Tenacity by hand
  • you need both sync and async retry support with one API
  • you want built-in observability and test controls for retries

When to avoid

  • you need highly customized retry policies like custom wait strategies or per-call dynamic tuning
  • you're not writing Python
  • you prefer full control over retry internals that Tenacity directly provides

Facets

library · maturity stable

error-handling concurrency monitoring testing developer-tools backend microservices python cross-platform retry backoff jitter async tenacity resilience decorator reliability

2 sources

Member repositories

RepositoryRoleHealth v2
hynek/staminamain80

For agents

markdown · JSON · MCP: product_card(name="hynek/stamina")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem