retry
Easy to use retry decorator.
Decision gist · record as of 2026-08-14
Yes, but with caution. The package is simple, popular (top 1000 on PyPI), and has no known vulnerabilities. However, it has been dormant since 2016 with no active maintenance—if you need modern Python support or encounter bugs, you may need to fork it or switch to a maintained alternative. For straightforward retry needs in stable environments, it remains functional.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with only two runtime dependencies (decorator and py).
- Maintenance is dormant—last release was 2016-05-11 and no commits since 2024-07-05—but the package remains archived and receives no active development.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in most commercial and open-source projects with minimal restrictions.
last release 2016-05-11 (3747 days) · last repo commit 2024-07-05 · 758 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 37,748,285 downloads/mo, #720 on PyPI
Alternatives
Verify before relying
pip install retry
from retry import retry
@retry(ValueError, tries=3, delay=1)
def my_function():
# code that may raise ValueError
pass
my_function()- Whether the package works reliably with modern Python versions beyond 3.4, given the last release was in 2016.
- Whether decorator and py dependencies are actively maintained or also dormant.
- Whether the jitter parameter accepts both fixed numbers and range tuples as documented.
What it is and what it does
retry is a lightweight decorator library for automatically retrying failed function calls. It wraps functions to catch specified exceptions and re-execute them with configurable delays, backoff multipliers, and jitter. The package provides two interfaces: a @retry decorator for direct annotation of functions, and a retry_call function for dynamic retry logic on arbitrary callables.
The decorator accepts parameters to control retry behavior: exception types to catch, maximum attempt count (default infinite), initial delay between attempts, maximum delay cap, exponential backoff multiplier, and optional jitter. It logs warnings on each failed attempt by default. The package depends on decorator and py as runtime dependencies, though the core retry logic uses only the standard library.
Use it for
- Wrap API calls that may fail transiently to automatically retry with exponential backoff.
- Decorate database operations to handle temporary connection failures without explicit error handling.
- Retry network requests with configurable delays to handle rate limiting or temporary unavailability.
- Dynamically adjust retry strategy at runtime using retry_call based on application state or user preference.
- Add resilience to file I/O operations that may fail due to temporary resource contention.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
The package is simple, popular (top 1000 on PyPI), and has no known vulnerabilities. However, it has been dormant since 2016 with no active maintenance—if you need modern Python support or encounter bugs, you may need to fork it or switch to a maintained alternative. For straightforward retry needs in stable environments, it remains functional.
Install
retry on PyPI
Before you install
Low friction install with only two runtime dependencies (decorator and py). Maintenance is dormant—last release was 2016-05-11 and no commits since 2024-07-05—but the package remains archived and receives no active development.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in most commercial and open-source projects with minimal restrictions.
Quickstart
pip install retry
from retry import retry
@retry(ValueError, tries=3, delay=1)
def my_function():
# code that may raise ValueError
pass
my_function()
Verify before relying
- Whether the package works reliably with modern Python versions beyond 3.4, given the last release was in 2016.
- Whether decorator and py dependencies are actively maintained or also dormant.
- Whether the jitter parameter accepts both fixed numbers and range tuples as documented.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdecoratorpy |
| Maintenance | Dormant 3,747 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 37,748,285 / month, #720 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development |
Evidence: retry-0.9.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “retry attempts limit”
- retryProvides a decorator and function wrapper for retrying failed…
- pyramid-retrypyramid_retry wraps Pyramid requests with configurable retry logic,…
- awsretryA decorator that wraps AWS API calls to automatically retry on common…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also python-timeout · reretry · retry2 · robust-downloader · python-retry · aioretry · backoff-utils · timeout-sampler · django-dbconn-retry · waiter