skillfed

httpr

Fast HTTP client for Python

httpr v0.6.0 4.4M downloads/30d#2,302 on PyPI
Permissive license MIT License Active released

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 httpr

uv

uv add httpr

poetry

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 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

Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules

Tags

fast http client pythonhttpx requests replacementasync sync http clientrust http client pythonhttp2 streaming supportlightweight http librarymtls http client
rust-backedhttp-clientasync-first

More Python Modules packages