pyqwest
A modern, high-performance HTTP client for Python and Rust.
What it is and what it does
pyqwest is a Python HTTP client that delegates core HTTP functionality to the Rust reqwest library (which uses hyper), while exposing a fully-typed, Pythonic API. It supports both async (Client) and sync (SyncClient) usage patterns, and covers the full HTTP feature set including HTTP/2, HTTP/3, bidirectional streaming, and trailers. The package is built as a Rust extension, giving it the performance and stability characteristics of the Rust HTTP stack without requiring developers to write Rust code.
The package targets modern Python versions (3.10–3.14) and publishes prebuilt wheels for macOS, Linux, and Windows. It has a single runtime dependency on opentelemetry-api. The project is actively maintained and has no known security vulnerabilities. It is positioned as an alternative to pure-Python HTTP clients like httpx and aiohttp, with preliminary benchmarks suggesting competitive or superior performance in async scenarios.
Use it for:
- Building async web scrapers or API clients that need HTTP/2 or HTTP/3 support without managing protocol complexity.
- Migrating from httpx to a faster HTTP client while keeping the same application logic via the HTTPX adapter.
- Applications requiring bidirectional streaming or HTTP trailers for advanced server communication patterns.
- Projects where HTTP client performance is a measurable bottleneck and pure-Python implementations are insufficient.
- Sync applications needing modern HTTP features with the performance of a compiled HTTP stack.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python HTTP client wrapping the Rust reqwest library, providing async and sync interfaces with support for HTTP/2, HTTP/3, bidirectional streaming, and trailers.
Yes, with conditions. Install if you need modern HTTP features (HTTP/2, HTTP/3, streaming) and are willing to accept medium install friction (Rust build requirement on some platforms). The package is actively maintained, has no known vulnerabilities, and offers permissive licensing. Not recommended if you require a pure-Python HTTP client or are restricted to Python versions below 3.10.
Install
pyqwest on PyPI
pip
pip install pyqwestuv
uv add pyqwestpoetry
poetry add pyqwestInstalling pyqwest
Before you install
Medium install friction due to compiled Rust components, but wheels are published for Python 3.10–3.14 across macOS, Linux (x86_64 and aarch64), and Windows. The package is actively maintained with a recent release (4 days old) and no known vulnerabilities.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
import pyqwest
client = pyqwest.Client()
response = await client.get("https://example.com")
print(len(response.content))
Requires Python 3.10 or later. For platforms without prebuilt wheels, Rust must be installed to build from source.
Verify before relying
- Whether opentelemetry-api is a required runtime dependency or an optional instrumentation feature.
- Full API surface and whether all HTTP/3 features are production-ready or still experimental.
- Stability guarantees given the Beta development status (Development Status :: 4).
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — opentelemetry-api |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,680,877/month — #2,945 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyqwest-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl; pyqwest-0.9.0-cp310-abi3-macosx_11_0_arm64.whl; pyqwest-0.9.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyqwest-0.9.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyqwest-0.9.0-cp310-abi3-musllinux_1_2_aarch64.whl; pyqwest-0.9.0-cp310-abi3-musllinux_1_2_x86_64.whl; pyqwest-0.9.0-cp310-abi3-win_amd64.whl; pyqwest-0.9.0-cp312-cp312-macosx_10_12_x86_64.whl; pyqwest-0.9.0-cp312-cp312-macosx_11_0_arm64.whl; pyqwest-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyqwest-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyqwest-0.9.0-cp312-cp312-musllinux_1_2_aarch64.whl; pyqwest-0.9.0-cp312-cp312-musllinux_1_2_x86_64.whl; pyqwest-0.9.0-cp312-cp312-win_amd64.whl; pyqwest-0.9.0-cp313-cp313-macosx_10_12_x86_64.whl; pyqwest-0.9.0-cp313-cp313-macosx_11_0_arm64.whl; pyqwest-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyqwest-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyqwest-0.9.0-cp313-cp313-musllinux_1_2_aarch64.whl; pyqwest-0.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
pyreqwestA Rust-based HTTP client for Python with both…
unclear · top 15,000 on PyPI
connect-pythonProvides Python client and server libraries for…
permissive · top 5,000 on PyPI
httprhttpr is a fast HTTP client for Python built on…
permissive · top 5,000 on PyPI
connectrpcConnect is a runtime library for building and…
permissive · top 15,000 on PyPI
pysignalrAsync-ready client library for connecting to…
permissive · top 15,000 on PyPI
baseten-performance-clientA high-performance Python HTTP client for…
unclear · top 15,000 on PyPI
pyfaup-rsParses URLs into components (scheme, host,…
copyleft · top 15,000 on PyPI
HypercornHypercorn is an ASGI and WSGI web server…
permissive · top 5,000 on PyPI
httpx-socksAdds SOCKS4(a), SOCKS5(h), and HTTP CONNECT…
permissive · top 5,000 on PyPI