retryhttp
Retry potentially transient HTTP errors in Python.
Decision gist · record as of 2026-08-14
Yes. Retryhttp is actively maintained, has no known vulnerabilities, low install friction, and solves a common production problem with a clean API. The Apache 2.0 license is permissive. Install it if you make HTTP calls that might fail transiently and want to avoid writing retry boilerplate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Requires one of the supported HTTP libraries (requests, httpx, httpx2, or aiohttp) to be installed separately.
- Low friction: pure Python wheel with only two runtime dependencies (pydantic and tenacity).
License · maintenance · safety
permissive license (permissive) — Apache License 2.0 is permissive; you can use, modify, and distribute retryhttp freely in commercial and private projects, provided you include a copy of the license and note any changes you make.
last release 2026-06-22 (53 days) · last repo commit 2026-06-22 · 14 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,360,994 downloads/mo, #2,321 on PyPI
Alternatives
Verify before relying
pip install retryhttp
from retryhttp import retry
@retry
def fetch():
# Make HTTP call with your preferred library
# Retries on 429, 500, 502, 503, 504, network errors, timeouts
pass- Default retry count and backoff timing specifics beyond the documented error types
- Whether custom retry predicates can be defined for non-standard error conditions
- Performance overhead of the decorator on high-volume request patterns
What it is and what it does
Retryhttp is a decorator-based retry layer for Python HTTP clients that handles transient failures automatically. It extends tenacity with custom strategies for HTTP-specific errors: status codes 429, 500, 502, 503, 504, plus network errors and timeouts. The package natively supports requests, httpx, httpx2, and aiohttp, with sensible defaults for retry counts and backoff timing that you can fully customize. It solves the common problem of flaky HTTP calls in production by reducing boilerplate retry logic and applying proven strategies for each error type.
You apply it as a simple decorator around any function that makes HTTP calls, and it handles the retry loop internally. The package depends on pydantic for configuration and tenacity for the underlying retry machinery, keeping the surface simple while leveraging a mature retry framework underneath.
Use it for
- Wrap API calls to third-party services that occasionally rate-limit or return transient 5xx errors
- Protect against temporary network blips and timeouts in microservice communication
- Reduce manual retry logic in data-fetching scripts that hit flaky endpoints
- Add resilience to web scraping tasks without rewriting error handling
- Handle rate-limit responses (429) with appropriate backoff in batch processing jobs
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Retryhttp is actively maintained, has no known vulnerabilities, low install friction, and solves a common production problem with a clean API. The Apache 2.0 license is permissive. Install it if you make HTTP calls that might fail transiently and want to avoid writing retry boilerplate.
Install
retryhttp on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (pydantic and tenacity). Last release 53 days ago, active repository with recent commits, marked Production/Stable.
Requires Python 3.10 or later. Requires one of the supported HTTP libraries (requests, httpx, httpx2, or aiohttp) to be installed separately.
License in practice
Apache License 2.0 is permissive; you can use, modify, and distribute retryhttp freely in commercial and private projects, provided you include a copy of the license and note any changes you make.
Quickstart
pip install retryhttp
from retryhttp import retry
@retry
def fetch():
# Make HTTP call with your preferred library
# Retries on 429, 500, 502, 503, 504, network errors, timeouts
pass
Verify before relying
- Default retry count and backoff timing specifics beyond the documented error types
- Whether custom retry predicates can be defined for non-standard error conditions
- Performance overhead of the decorator on high-volume request patterns
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespydantictenacity |
| Maintenance | Actively maintained 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,360,994 / month, #2,321 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Internet :: WWW/HTTPTopic :: Utilities |
Evidence: retryhttp-1.5.0-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 › “rate limit retry handler”
- retryhttpRetryhttp wraps HTTP client calls to automatically retry transient…
- retryProvides a decorator and function wrapper for retrying failed…
- ratelimitA function decorator that enforces rate limits on API calls, raising…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also tenacity · retry-requests · http-exceptions · stamina · pyramid-retry · meraki · httpxthrottlecache · eth-retry · httpx-retries · awsretry