$npx skillfedfor your agent

retry

Easy to use retry decorator.

With conditionsPyPI Software DevelopmentReleased May 201637.7M downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — retry-0.9.2-py2.py3-none-any.whl
v0.9.2 · released 2016-05-11 · 2 runtime deps: decorator, py

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
decoratorpy
MaintenanceDormant 3,747 days since the last release
Last repo commit
First released
Downloads37,748,285 / month, #720 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
retry decorator pythonautomatic retry logicexponential backoff retryexception retry handlerretry with delayfunction retry wrapperretry attempts limit
Topics
resilienceerror-handlingdecorator

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also python-timeout · reretry · retry2 · robust-downloader · python-retry · aioretry · backoff-utils · timeout-sampler · django-dbconn-retry · waiter