--- id: httpr version: "0.6.0" license: MIT License license_treatment: permissive maintenance: active --- # httpr — Fast HTTP client for Python License: permissive · Maintenance: active · Downloads: 4.4M/mo ## 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 above — 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 pip install httpr uv add httpr poetry add httpr ## Installing 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_current - Install friction: medium - Maintenance: active - Downloads: 4.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags fast http client python, httpx requests replacement, async sync http client, rust http client python, http2 streaming support, lightweight http library, mtls http client, rust-backed, http-client, async-first [View on SkillFed](https://skillfed.io/packages/httpr) · [View on PyPI](https://pypi.org/project/httpr/)