Registry / http-networking / pyreqwest

pyreqwest

JSON →
library0.12.0pypypi✓ verified 82d ago

Powerful and fast Rust-based HTTP client for Python, wrapping the popular reqwest crate. Current version 0.11.8, requires Python >=3.11. Release cadence is irregular with frequent bugfix releases.

pip install pyreqwest
INSTALL
IMPORT
SIG · PYREQWEST
P
pyreqwest
http-networkingpythonv0.12.0
Install
2.0s avg
Import
Disk
25MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✓ —
✓ 2.4s
py 3.12
✓ —
✓ 1.8s
py 3.13
✓ —
✓ 1.8s
py 3.9
✕ build_error
✕ build_error
25MB installed
● package 25MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
import pyreqwest
from pyreqwest import Client

Basic synchronous HTTP GET request.

from pyreqwest import Client client = Client() response = client.get("https://httpbin.org/get") print(response.status_code) print(response.text())
Debug
Known issues
gotchapyreqwest methods (e.g., `get`, `post`) are **blocking** by default. There is no async support. If you need async, use a different library.
fix
Do not try `await client.get(...)`. Use synchronous calls only.
affects: all
breakingIn v0.11.4, the `header` method on `RequestBuilder` renamed the `name` keyword argument to `key`. Code using `header(name="X-Custom", value="val")` will break.
fix
Change to `header(key="X-Custom", value="val")`.
affects: >=0.11.4
gotcha`Response.text()` is a method, not a property. Calling `response.text` (without parentheses) returns the bound method, not the string.
fix
Always call `response.text()` with parentheses.
affects: all
deprecatedThe `http2()` method on `ClientBuilder` is deprecated in favor of `http2_prior_knowledge()`? Actually, keep this generic: The `http2` method typing has been corrected; ensure you pass a boolean.
fix
Use `client_builder.http2(True)` (boolean) as intended.
affects: >=0.11.7
Upgrade
Version history
0.12.0latest on PyPI · released May 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
pyreqwest — pip install pyreqwest · libregistry