{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing"}],"enrichment":{"capability":"Stamina wraps Tenacity to provide a production-ready retry decorator with sensible defaults: exponential backoff with jitter, attempt and timeout limits, exception filtering, and built-in async support for asyncio and Trio.","skillfed_tags":["resilience","observability"],"use_cases":["Decorate functions to automatically retry on transient errors with exponential backoff and jitter.","Retry async functions with the same API as sync functions, including Trio support.","Instrument retry behavior with Prometheus metrics or structured logging for observability.","Globally disable retries in test suites or limit retry attempts to speed up test execution.","Configure both attempt count and total timeout limits to bound retry behavior."],"what_it_does":"Stamina is a retry library built on top of Tenacity that simplifies resilience patterns in distributed systems. It provides a decorator-based API that handles transient failures with exponential backoff, jitter, and configurable attempt and timeout limits. The library is designed to do the right thing by default\u2014retrying only specified exceptions, respecting both attempt counts and total time budgets, and automatically supporting async functions including Trio.\n\nThe package includes first-class support for instrumentation via Prometheus, structlog, and standard logging, plus dedicated testing utilities to globally disable or limit retries during test runs. Type hints are preserved on decorated functions, and the same API works for both sync and async callables as well as arbitrary code blocks, making it suitable for I/O-heavy workloads where transient failures are common.","worth_installing":"Yes. Stamina is actively maintained with no known vulnerabilities and low install friction. It solves a real problem\u2014production-grade retries\u2014with sensible defaults and a clean API. Use it when you need resilience in distributed systems and want to avoid copy-pasting retry logic."},"id":"stamina","links":{"html":"https://skillfed.io/packages/stamina","md":"https://skillfed.io/packages/stamina.md","pypi":"https://pypi.org/project/stamina/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-13","license_spdx":"MIT","license_treatment":"permissive","name":"stamina","python_support":"supports_current","summary":"Production-grade retries made easy."},"popularity":{"monthly_downloads":5786245,"position":2037,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"26.1.0"}
