wreqx
An ergonomic, high-fidelity Python HTTP/TLS client with full-stack BoringSSL, HTTP/1.1, and HTTP/2 protocol customization, built on top of the open-source wreq stack.
Key Enhancements in wreqx
- Complete Chrome 154 – 159 Profiles: Built-in
Profile.Chrome154,Chrome155,Chrome156,Chrome157,Chrome158, andChrome159aligned with real Chromium TLS (server_paddingextension4832, sorted Trust Anchor IDs51764,X25519MLKEM768,mldsa44/65/87, ALPS17613), HTTP/2, and per-version headers (image/jxl,Accept-Languageorder,Sec-CH-UA). - Session-Scoped TLS Consistency:
Emulation(..., session_id="...", server_padding=...)locks connection pool, TLS session cache, and real Chrome Finchserver_paddingcohort per session while isolating different sessions. - Chromium-Aligned HPACK Literal Policy: Falls back to 7-bit plaintext (
H=0) when Huffman encoding does not strictly shorten short header values (?0,?1,1,*/*, etc.). - Automatic Per-Request HTTP/2 Stream Priority: Dynamically maps
Priority/Sec-Fetch-Dest/Sec-Fetch-Modeheaders to Chromium stream weights (256 / 220 / 183 / 147 / 110 / 74 / 37 / 1) on reused HTTP/2 connections. - Consistent
http2=FalseHandshake Downgrade: Narrowing ALPN to["http/1.1"], stripping ALPS extensions, and isolating H1/H2 connection pools & TLS session tickets. - RFC 6265
Jar.matches(url): Query all effective cookies scoped to a target URL (domain/host-only, path prefix boundary,Secure, expiration, preservinghttp_only).
Installation
pip install wreqx
Quick Start
import asyncio
import wreqx
from wreqx.cookie import Jar
from wreqx.emulation import Emulation, Platform, Profile
async def main() -> None:
emulation = Emulation(
profile=Profile.Chrome159,
platform=Platform.Windows,
session_id="session-001",
)
jar = Jar()
client = wreqx.Client(emulation=emulation, cookie_provider=jar)
resp = await client.get("https://tls.peet.ws/api/all")
print(resp.status, resp.version)
print(await resp.text())
if __name__ == "__main__":
asyncio.run(main())
License
Licensed under the Apache License, Version 2.0 (LICENSE). Derived from 0x676e67/wreq-python.
Metadata
Release files for wreqx 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wreqx-0.13.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for wreqx-0.13.0-cp311-abi3-win_amd64.whl |
Release files / wreqx-0.13.0-cp311-abi3-win_amd64.whl
| Download URL | wreqx-0.13.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
57c0e5205c2b03be784796ad3e66451ab2502c1bc5e1f045526b58ea7214f578
|
|
BLAKE2b-256 checksum How to use checksums |
b1b8e088e2748b4d7a8dc948d3575a4dff2918c56fa7692a890e093c36f01fec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Security for wreqx 0.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.