retry-decorator
Retry Decorator
Decision gist · record as of 2026-08-14
No. The package is abandoned with no maintenance since 2021, and high install friction (source-only distribution). Modern Python projects should use the standard library's functools.wraps with explicit retry logic, or a maintained alternative like tenacity or backoff, which offer more features and active support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction due to source distribution only.
- Package is abandoned—last release was 2020-03-10 and last commit 2021-12-11—so expect no maintenance response to issues or compatibility problems.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions.
last release 2020-03-10 (2348 days) · last repo commit 2021-12-11 · 27 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 474,207 downloads/mo, #6,455 on PyPI
Alternatives
Verify before relying
from retry_decorator import retry
@retry(Exception, tries=3, timeout_secs=0.1)
def my_function():
# function body
pass
my_function()- Whether the decorator works correctly with modern Python versions (classifiers claim Python 2 and 3 support, but no requires_python constraint is specified).
- Whether timeout_secs parameter actually enforces a timeout or merely introduces a delay between retries.
What it is and what it does
retry-decorator is a simple Python decorator that wraps a function to automatically retry it when an exception occurs. You decorate a function with @retry, specifying the exception type to catch, the number of attempts to make, and a delay between retries in seconds. If all retries are exhausted, the last exception is raised to the caller.
The package has no runtime dependencies and works with both Python 2 and Python 3 according to its classifiers. However, the project is abandoned—the last release was in March 2020 and the last repository commit in December 2021—so it will not receive updates for compatibility issues or bug fixes.
Use it for
- Wrap network requests that may fail transiently to automatically retry before giving up.
- Decorate database queries or API calls that occasionally time out or return temporary errors.
- Add resilience to file I/O operations that may fail due to temporary resource unavailability.
- Simplify test fixtures that need to wait for a service to become ready before proceeding.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned with no maintenance since 2021, and high install friction (source-only distribution). Modern Python projects should use the standard library's functools.wraps with explicit retry logic, or a maintained alternative like tenacity or backoff, which offer more features and active support.
Install
retry-decorator on PyPI
Before you install
High install friction due to source distribution only. Package is abandoned—last release was 2020-03-10 and last commit 2021-12-11—so expect no maintenance response to issues or compatibility problems.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
from retry_decorator import retry
@retry(Exception, tries=3, timeout_secs=0.1)
def my_function():
# function body
pass
my_function()
Verify before relying
- Whether the decorator works correctly with modern Python versions (classifiers claim Python 2 and 3 support, but no requires_python constraint is specified).
- Whether timeout_secs parameter actually enforces a timeout or merely introduces a delay between retries.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,348 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 474,207 / month, #6,455 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 2Programming Language :: Python :: 3 |
Evidence: retry_decorator-1.1.1.tar.gz
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 › “automatic retry on exception”
- retry-decoratorProvides a decorator to automatically retry a function when it raises…
- retryingRetrying is a decorator-based library that adds automatic retry logic…
- retryProvides a decorator and function wrapper for retrying failed…
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 essentials · timeout-decorator · retry2 · reretry · awsretry · retry · backoff · pybreaker · wrapt-timeout-decorator · strongtyping