--- id: backoff version: "2.2.1" license: MIT license_treatment: permissive maintenance: abandoned --- # backoff — Function decoration for backoff and retry License: permissive · Maintenance: abandoned · Popularity: top 1,000 on PyPI ## Install pip install backoff uv add backoff poetry add backoff ## Description backoff ======= .. image:: https://travis-ci.org/litl/backoff.svg :target: https://travis-ci.org/litl/backoff .. image:: https://coveralls.io/repos/litl/backoff/badge.svg :target: https://coveralls.io/r/litl/backoff?branch=python-3 .. image:: https://github.com/litl/backoff/workflows/CodeQL/badge.svg :target: https://github.com/litl/backoff/actions/workflows/codeql-analysis.yml .. image:: https://img.shields.io/pypi/v/backoff.svg :target: https://pypi.python.org/pypi/backoff .. image:: https://img.shields.io/github/license/litl/backoff :target: https://github.com/litl/backoff/blob/master/LICENSE **Function decoration for backoff and retry** This module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources with the potential for intermittent failures i.e. network resources and external APIs. Somewhat more generally, it may also be of use for dynamically polling resources for externally generated content. Decorators support both regular functions for synchronous code and `asyncio... ## AI interpretation — verify before relying Provides decorators to automatically retry functions with configurable backoff strategies (exponential, fibonacci, constant) when exceptions occur or predicates are met, supporting both synchronous and asynchronous code. Verdict: Backoff is a stable, well-established retry library with zero security vulnerabilities and permissive licensing, making it safe to adopt for existing projects. Its abandonment since October 2022 poses minimal risk for stable use cases but means no new features or fixes will arrive; consider it only if its current feature set fully meets your needs. [View on SkillFed](https://skillfed.io/packages/backoff) · [View on PyPI](https://pypi.org/project/backoff/)