Development Status
- 4 - Beta
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- MacOS :: MacOS X
- Microsoft :: Windows
- POSIX :: Linux
Programming Language
- Python
- Python :: 3
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: 3.15
- Python :: Implementation :: CPython
- Rust
Topic
- Internet :: WWW/HTTP
pyqwest
pyqwest is a Python HTTP client supporting modern HTTP features, based on the Rust library reqwest. It does not reinvent any features of HTTP or sockets, delegating to the excellent reqwest, which uses hyper, for all core functionality while presenting a familiar Pythonic API.
Features
- All features of HTTP, including bidirectional streaming, trailers, and HTTP/3
- Async and sync clients
- The stability and performance of the Rust HTTP client stack
- A fully-typed, Pythonic API - no runtime-checked union types
Installation
pyqwest is published to PyPI and can be installed as normal. We publish wheels for a wide variety of platforms, but if you happen to be using one without prebuilt wheels, it will be built automatically if you have Rust installed.
uv add pyqwest # or pip install
Usage
pyqwest provides the classes Client and SyncClient for async and sync applications respectively.
These are ready to use to issue requests, or you can create and pass HTTPTransport or SyncHTTPTransport
to configure settings like TLS certificates.
client = pyqwest.Client()
response = await client.get("https://curioswitch.org")
print(len(response.content))
See the API reference for all the APIs available.