{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/4"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Provides function decorators for retrying operations with configurable backoff strategies when exceptions occur or predicates are met, supporting both synchronous and asynchronous code.","skillfed_tags":["retry-logic","async-support","decorator-pattern"],"use_cases":["Retry HTTP requests with exponential backoff when network timeouts or transient errors occur.","Poll an external API or queue at regular intervals until a non-empty result is returned.","Automatically retry database operations that fail due to temporary connection issues.","Handle rate-limiting by respecting Retry-After headers via the runtime backoff generator.","Wrap asyncio coroutines to retry async I/O operations with configurable backoff strategies."],"what_it_does":"backoff is a decorator library for adding retry logic to Python functions. It wraps functions to automatically re-execute them when they fail, using configurable wait strategies (exponential, fibonacci, constant, or custom) between attempts. The library supports both exception-based retries (when a specific exception is raised) and predicate-based retries (when a function's return value meets a condition), making it useful for handling transient failures in network calls, API requests, or resource polling.\n\nThe package is designed for unreliable resources and intermittent failures\u2014typical scenarios include HTTP requests, database connections, and external API calls. It supports both synchronous functions and asyncio coroutines, offers fine-grained control over retry limits (by attempt count or elapsed time), and includes jitter algorithms to prevent thundering herd problems. You can combine multiple decorators, inspect exceptions before deciding whether to retry, and configure behavior at runtime via callables.","worth_installing":"Yes. backoff is a lightweight, actively maintained library with zero dependencies, permissive MIT licensing, and broad Python version support. It solves a common problem (retry logic) cleanly and flexibly, with no security vulnerabilities. Install it if you need to add resilience to functions that interact with unreliable external resources."},"id":"python-backoff","links":{"html":"https://skillfed.io/packages/python-backoff","md":"https://skillfed.io/packages/python-backoff.md","pypi":"https://pypi.org/project/python-backoff/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":"MIT","license_treatment":"permissive","name":"python-backoff","python_support":"supports_current","summary":"Function decoration for backoff and retry"},"popularity":{"monthly_downloads":4621238,"position":2272,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.4.0"}
