This release is a pre-release and may not be stable for production use.
httpx
An HTTP toolkit for folks who give a damn.
Engineered for simplicity, httpx provides a complete Python web suite…
- Supports both client and server functionality.
- Presents a clear, simple, and tightly constrained API.
- A miminal, easily readable implementation.
Installation
Install the package from PyPI…
$ uv add httpx --pre
Client
Sending HTTP requests…
>>> import httpx
>>> cli = httpx.Client()
>>> r = cli.get('https://www.example.com/')
>>> r
<Response [200 OK]>
Server
Creating web apps…
>>> import httpx
>>> def app(request):
... content = httpx.HTML('<html><body>¡Hola, mundo!</body></html>')
... return httpx.Response(200, content=content)
>>> s = httpx.Server(app)
>>> s.serve()
Motivation
A clean modern design, with a focused API and an exceptionally light installation footprint.
For comparison, see httpx vs requests…
$ uv add httpx
$ uv tree --show-sizes --package httpx
httpx v1.0.dev5 (33.5KiB)
└── truststore v0.10.0 (17.8KiB)
$ uv add requests
$ uv tree --show-sizes --package requests
requests v2.33.1 (63.4KiB)
├── certifi v2026.2.25 (150.1KiB)
├── charset-normalizer v3.4.7 (302.4KiB)
├── idna v3.11 (69.3KiB)
└── urllib3 v2.6.3 (128.5KiB)
Contribution
The httpx redesign is currently in early development and not yet public.
MIT Licensed.
Designed & Built with Love.
— 💖 —
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpx-1.0.dev5.tar.gz.
File metadata
- Download URL: httpx-1.0.dev5.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56fc545e2afa14ea800153a0d2418e2598f78b3cd7c853df9a38f38b516a0f35
|
|
| MD5 |
188f6c7c2e6533f37cfd64eb708bd7c1
|
|
| BLAKE2b-256 |
511b1471c9b33061b8bb8fe32a5dcf488371ec890550c033981f3c625fc2689e
|
File details
Details for the file httpx-1.0.dev5-py3-none-any.whl.
File metadata
- Download URL: httpx-1.0.dev5-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cea2ce9a060dfdab35ce568188032bd5e58cff574cdde67bafbeae90237e545e
|
|
| MD5 |
a77fcc15812013ee721a68920999fa0a
|
|
| BLAKE2b-256 |
fca2b5ebbdbdf44f598ef6552c37faad06ec9684ac26d92012fdd10db2e12b16
|