httpr
Fast HTTP client for Python
What it is and what it does
httpr is a Python HTTP client library implemented in Rust that aims to be a faster, lighter alternative to httpx and requests. It provides both synchronous and asynchronous APIs for making HTTP requests, with zero Python runtime dependencies and support for modern HTTP features like HTTP/2, streaming responses, and mutual TLS. The package is built on top of reqwest, a popular Rust HTTP client, and exposes a Python interface that closely mirrors httpx's API for ease of migration.
The library targets developers who need HTTP functionality with lower latency and memory overhead than pure-Python alternatives. It handles common HTTP operations—GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS—along with authentication (basic and bearer token), cookies, redirects, proxies, and custom headers. Response objects provide access to status codes, headers, content, JSON parsing, and helper methods for checking response categories (success, error, redirect). The package is actively maintained and supports Python 3.10 through 3.14.
Use it for:
- Building high-performance web scrapers or API clients where request latency and throughput matter.
- Migrating from httpx or requests to reduce memory footprint in resource-constrained environments.
- Async applications requiring concurrent HTTP requests with first-class async/await support.
- Services that need HTTP/2 or mTLS support without additional configuration complexity.
- Streaming large payloads (file downloads, uploads) while keeping memory usage predictable.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
httpr is a fast HTTP client for Python built on Rust that provides both sync and async interfaces as a drop-in replacement for httpx and requests, with support for HTTP/2, streaming, and mTLS.
Yes, with conditions. httpr is worth installing if you need faster HTTP performance and can target Python 3.10+. The zero-dependency design and precompiled wheels make installation straightforward on common platforms. However, note that fine-grained error handling is not yet implemented, so error recovery patterns may differ from httpx/requests. Test compatibility with your specific use case before migrating existing code, and verify performance gains in your workload rather than assuming the benchmark results apply universally.
Install
httpr on PyPI
pip
pip install httpruv
uv add httprpoetry
poetry add httprInstalling httpr
Before you install
Medium install friction due to compiled wheels; however, precompiled binaries are available for common platforms (x86_64, ARM, i686 on Linux/macOS/Windows). Active maintenance with a recent release 17 days ago. Zero Python runtime dependencies.
License in practice
MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute httpr freely provided you include the license notice.
Quickstart
pip install httpr
from httpr import Client
client = Client()
response = client.get('https://example.com')
print(response.status_code, response.text)
Requires Python 3.10 or later; precompiled wheels are available for common architectures, but installation on unsupported platforms may require a Rust toolchain.
Verify before relying
- Whether fine-grained error handling (noted as not yet implemented) affects real-world error recovery in your use case.
- Performance gains over httpx/requests in your specific workload; benchmark results are available but application-specific testing is recommended.
- Compatibility depth for edge cases where httpx/requests behavior is relied upon but not yet implemented in httpr.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 17 days since the last release |
| First released | |
| Downloads | 4,435,650/month — #2,302 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: httpr-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl; httpr-0.6.0-cp310-abi3-macosx_11_0_arm64.whl; httpr-0.6.0-cp310-abi3-manylinux_2_12_i686.manylinux2010_i686.whl; httpr-0.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; httpr-0.6.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; httpr-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; httpr-0.6.0-cp310-abi3-musllinux_1_2_aarch64.whl; httpr-0.6.0-cp310-abi3-musllinux_1_2_i686.whl; httpr-0.6.0-cp310-abi3-musllinux_1_2_x86_64.whl; httpr-0.6.0-cp310-abi3-win32.whl; httpr-0.6.0-cp310-abi3-win_amd64.whl; httpr-0.6.0-cp314-cp314t-macosx_10_12_x86_64.whl; httpr-0.6.0-cp314-cp314t-macosx_11_0_arm64.whl; httpr-0.6.0-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl; httpr-0.6.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; httpr-0.6.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; httpr-0.6.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; httpr-0.6.0-cp314-cp314t-musllinux_1_2_aarch64.whl; httpr-0.6.0-cp314-cp314t-musllinux_1_2_i686.whl; httpr-0.6.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Keywords: python, request
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
wreqAn HTTP client library for Python with…
permissive · top 15,000 on PyPI
httpx2HTTPX2 is a fully featured HTTP client library…
permissive · top 1,000 on PyPI
pyqwestA Python HTTP client wrapping the Rust reqwest…
permissive · top 5,000 on PyPI
geventhttpclientA concurrent HTTP client for gevent that…
permissive · top 5,000 on PyPI
baseten-performance-clientA high-performance Python HTTP client for…
unclear · top 15,000 on PyPI
pyreqwestA Rust-based HTTP client for Python with both…
unclear · top 15,000 on PyPI
opentelemetry-instrumentation-httpxAdds distributed tracing to HTTP requests made…
permissive · top 1,000 on PyPI
rangehttpserverA drop-in replacement for Python's…
permissive · top 5,000 on PyPI
httplib2httplib2 is an HTTP client library that handles…
permissive · top 1,000 on PyPI