httpx-retries
A retry layer for HTTPX.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common problem (request retry) in a way that mirrors familiar patterns from urllib3 and requests. The MIT license imposes no restrictions. Install it if you use HTTPX and need retry behavior; the defaults work out of the box.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; httpx must be installed separately.
- Low friction: pure Python wheel, single runtime dependency on httpx.
- Active maintenance with recent release (39 days ago) and steady repository activity.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); no restrictions on commercial or private use.
last release 2026-07-06 (39 days) · last repo commit 2026-07-08 · 76 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,714,169 downloads/mo, #2,246 on PyPI
Alternatives
Verify before relying
pip install httpx-retries
import httpx
from httpx_retries import RetryTransport
with httpx.Client(transport=RetryTransport()) as client:
response = client.get("https://example.com")- Whether ReadTimeout errors during response body download are handled by the retry_request / aretry_request helpers mentioned in the docs.
- Performance overhead of the retry transport compared to raw httpx under normal (non-failure) conditions.
What it is and what it does
httpx-retries wraps HTTPX's transport layer to automatically retry failed requests with configurable backoff strategies. It's designed to handle flaky and unreliable APIs by retrying on transient failures, similar to urllib3's Retry utility but built for HTTPX's sync and async clients. The package provides sensible defaults for simple use cases (just wrap your client with RetryTransport) and a Retry configuration object for customizing total retry count, backoff factor, and backoff strategy.
The library is in Beta status and supports Python 3.10 through 3.14. It depends only on httpx and installs as a pure Python wheel. One known limitation: errors that occur while reading the response body (such as ReadTimeout mid-download) happen after the transport returns, so they cannot be retried by the transport itself—the package provides separate helper functions for that case.
Use it for
- Wrap an HTTPX client with default retry behavior to handle transient network failures without custom logic.
- Configure a Retry policy with specific backoff and total retry limits for APIs known to be flaky.
- Use async retry transport with AsyncClient for concurrent requests that need resilience to temporary failures.
- Migrate from requests + urllib3 Retry to HTTPX with minimal API changes using the compatible Retry configuration.
- Build a resilient scraper or data-fetching service that retries on connection timeouts and transient errors.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common problem (request retry) in a way that mirrors familiar patterns from urllib3 and requests. The MIT license imposes no restrictions. Install it if you use HTTPX and need retry behavior; the defaults work out of the box.
Install
httpx-retries on PyPI
Before you install
Low friction: pure Python wheel, single runtime dependency on httpx. Active maintenance with recent release (39 days ago) and steady repository activity.
Requires Python 3.10 or later; httpx must be installed separately.
License in practice
MIT license (permissive); no restrictions on commercial or private use.
Quickstart
pip install httpx-retries
import httpx
from httpx_retries import RetryTransport
with httpx.Client(transport=RetryTransport()) as client:
response = client.get("https://example.com")
Verify before relying
- Whether ReadTimeout errors during response body download are handled by the retry_request / aretry_request helpers mentioned in the docs.
- Performance overhead of the retry transport compared to raw httpx under normal (non-failure) conditions.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagehttpx |
| Maintenance | Actively maintained 39 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,714,169 / month, #2,246 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: AsyncIOFramework :: TrioIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTP |
Evidence: httpx_retries-0.6.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 › “httpx retry transport”
- httpx-retriesAdds automatic request retry logic to HTTPX, with configurable…
- httpx-aiohttpProvides aiohttp-based transports for httpx, allowing httpx to use…
- auth0-pythonProvides Python bindings to Auth0's Authentication and Management…
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 httpx-aiohttp · httpx-socks · retrying · retry-requests · retryhttp · pytest-retry · opentelemetry-instrumentation-httpx · python-retry · aiohttp-retry · elastic-transport