retrying
Retrying
Decision gist · record as of 2026-08-14
Yes. Retrying is a lightweight, zero-dependency library with permissive licensing, active maintenance, and broad Python version support. It solves a common problem—adding retry logic—cleanly via decorators. No known vulnerabilities. Install it when you need retry behavior without building custom logic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- Low install friction with no runtime dependencies.
- Actively maintained as of 2026-07-26 with recent releases, supporting Python 3.6 through 3.13.
License · maintenance · safety
Apache-2.0 (permissive) — Apache 2.0 permissive license allows use in most projects without significant restrictions.
last release 2025-08-03 (376 days) · last repo commit 2026-07-26 · 96 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 38,692,760 downloads/mo, #711 on PyPI
Alternatives
Verify before relying
from retrying import retry
@retry
def do_something_unreliable():
# function body
return result
do_something_unreliable()What it is and what it does
Retrying is a Python decorator library that simplifies adding retry behavior to functions. It wraps a function call and automatically re-executes it when exceptions occur or when result conditions aren't met, without requiring manual loop logic. The library handles the common patterns: retrying forever, stopping after a maximum number of attempts, stopping after elapsed time, waiting between retries with fixed delays, random jitter, or exponential backoff. You can customize which exceptions trigger a retry, inspect return values to decide whether to retry, and combine multiple stop and wait conditions.
The decorator approach keeps retry logic separate from the function body, making it easy to add to existing code. It's useful for handling transient failures in network calls, database operations, or any operation that might temporarily fail but succeed on retry.
Use it for
- Retry flaky network requests with exponential backoff to avoid overwhelming remote services.
- Handle temporary database connection failures by retrying up to a maximum number of attempts.
- Implement polling logic that waits between checks for a resource becoming available.
- Wrap unreliable I/O operations with automatic retry on specific exception types.
- Add retry behavior to distributed system calls with configurable backoff strategies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Retrying is a lightweight, zero-dependency library with permissive licensing, active maintenance, and broad Python version support. It solves a common problem—adding retry logic—cleanly via decorators. No known vulnerabilities. Install it when you need retry behavior without building custom logic.
Install
retrying on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as of 2026-07-26 with recent releases, supporting Python 3.6 through 3.13.
Requires Python 3.6 or later.
License in practice
Apache 2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
from retrying import retry
@retry
def do_something_unreliable():
# function body
return result
do_something_unreliable()
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 376 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 38,692,760 / month, #711 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: InternetTopic :: Utilities |
Evidence: retrying-1.4.2-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 › “automatic retry logic”
- retryingRetrying is a decorator-based library that adds automatic retry logic…
- python-retryProvides a decorator to automatically retry failed function calls…
- retry2Provides a decorator and function wrapper to automatically retry…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also pyramid-retry · python-retry · tenacity · httpx-retries · robust-downloader · reretry · retry · aiohttp-retry · polling2 · waiting