python-retry
Retry package for Python
Decision gist · record as of 2026-08-14
Yes, if you need basic retry logic without external dependencies. The package is simple and permissively licensed. However, maintenance is dormant (no updates since 2022-03-11), so verify compatibility with your Python version and consider whether a more actively maintained alternative better suits long-term projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later (package specifies requires_python >= 3.6).
- Low install friction with no runtime dependencies.
- Maintenance is dormant—last release was 2022-03-11 with no updates since, though the repository remains active and has received a recent commit (2024-04-12).
License · maintenance · safety
MIT License (permissive) — MIT License permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and proprietary projects.
last release 2022-03-11 (1617 days) · last repo commit 2024-04-12 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 138,784 downloads/mo, #11,317 on PyPI
Alternatives
Verify before relying
pip install python-retry
from python_retry import retry
@retry(max_retries=2, backoff_factor=1)
def call_api():
# function body
pass
call_api()- Whether the package handles async/await functions or only synchronous callables
- Current test coverage and whether the test suite remains passing under modern Python versions
What it is and what it does
Python Retry is a lightweight decorator library that wraps function calls to automatically retry them when they fail. It lets you specify how many times to retry, what exceptions should trigger a retry, and how long to wait between attempts—including exponential backoff. The package has no runtime dependencies, making it a minimal addition to any project that needs resilience against transient failures.
You apply it as a simple decorator above any function, optionally tuning its behavior with parameters like max_retries, backoff_factor, and retry_on to filter which exceptions warrant a retry. It can also suppress exceptions entirely and log retry attempts to a logger you provide.
Use it for
- Wrap API calls that may fail transiently, retrying with exponential backoff before giving up
- Protect database queries or network operations from temporary connectivity issues
- Add resilience to file I/O operations that might fail due to transient system conditions
- Implement retry logic in test fixtures or setup/teardown code without rewriting the function
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need basic retry logic without external dependencies.
The package is simple and permissively licensed. However, maintenance is dormant (no updates since 2022-03-11), so verify compatibility with your Python version and consider whether a more actively maintained alternative better suits long-term projects.
Install
python-retry on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2022-03-11 with no updates since, though the repository remains active and has received a recent commit (2024-04-12).
Requires Python 3.6 or later (package specifies requires_python >= 3.6).
License in practice
MIT License permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and proprietary projects.
Quickstart
pip install python-retry
from python_retry import retry
@retry(max_retries=2, backoff_factor=1)
def call_api():
# function body
pass
call_api()
Verify before relying
- Whether the package handles async/await functions or only synchronous callables
- Current test coverage and whether the test suite remains passing under modern Python versions
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,617 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 138,784 / month, #11,317 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: python_retry-0.0.1-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 decorator python”
- python-retryProvides a decorator to automatically retry failed function calls…
- retryProvides a decorator and function wrapper for retrying failed…
- retry-decoratorProvides a decorator to automatically retry a function when it raises…
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 retrying · eth-retry · retry · aiohttp-retry · reretry · retry2 · tenacity · backoff · awsretry · python-backoff