--- id: backoff-utils version: "1.0.1" license: MIT license_treatment: permissive maintenance: dormant --- # backoff-utils — Python functions and decorators for various backoff/retry strategies License: permissive · Maintenance: dormant · Downloads: 337.2K/mo ## What it is and what it does Backoff-Utils is a Python library that wraps function calls with automatic retry logic using configurable backoff strategies. It offers two main interfaces: a backoff() function for one-off retries and an @apply_backoff() decorator for persistent retry behavior on any function or method. The library supports five built-in strategies (exponential, Fibonacci, fixed, linear, polynomial) and allows customization through random jitter, argument adjustment between retries, selective exception handling, and maximum delay or attempt limits. The package is designed for scenarios where external API calls or network operations fail transiently—timeouts, temporary service unavailability, or intermittent connectivity issues. It reduces boilerplate by centralizing retry logic rather than scattering try-except blocks throughout your code. The single runtime dependency is validator-collection, which handles input validation. The library has been tested on Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8, though active maintenance ended in mid-2020. Use it for: - Wrap API client calls to third-party services to automatically retry on transient failures. - Decorate database query functions to handle temporary connection drops or timeouts. - Apply exponential backoff to rate-limited endpoints to avoid overwhelming the service. - Handle intermittent network glitches in web scraping or data-fetching tasks. - Implement fault tolerance in microservice communication without manual retry loops. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides functions and decorators to apply backoff and retry strategies to Python function calls, supporting exponential, Fibonacci, fixed, linear, and polynomial delays. Yes, if you need straightforward retry logic and can accept dormant maintenance. The package is stable (v1.0.1, Production/Stable classifier), has no known vulnerabilities, and a permissive MIT license. However, verify compatibility with your Python version and validator-collection's current state, since no updates have shipped since 2020-07-11. For projects on newer Python versions, consider whether a more actively maintained alternative better fits your risk tolerance. ## Install pip install backoff-utils uv add backoff-utils poetry add backoff-utils ## Installing backoff-utils Before you install: Low install friction with a single runtime dependency (validator-collection). The package is dormant since its last release on 2020-07-11, though the repository remains active and unarchived. Maintenance status means no recent updates or bug fixes. License in practice: Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions. Quickstart: pip install backoff-utils from backoff_utils import backoff, apply_backoff, strategies # As a function call result = backoff(some_function, args=['val1'], max_tries=3, strategy=strategies.Exponential) # Or as a decorator @apply_backoff(strategy=strategies.Exponential, max_tries=3) def decorated_function(): pass Verify before relying: - Whether the package works reliably with Python versions beyond those tested (2.7, 3.4, 3.5, 3.6, 3.7, 3.8), given dormant maintenance. - Current compatibility with validator-collection and whether its transitive dependencies remain maintained. - Whether random jitter, custom strategies, and chained backoff features are production-ready. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 337.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags retry decorator python, backoff strategy library, exponential backoff retry, function retry with delay, api call retry logic, fault tolerance decorator, transient failure handling, retry-logic, fault-tolerance, decorator [View on SkillFed](https://skillfed.io/packages/backoff-utils) · [View on PyPI](https://pypi.org/project/backoff-utils/)