An ergonomic and modular Python HTTP Client for high-fidelity protocol matching, featuring customizable TLS, JA3/JA4, and HTTP/2 signature capabilities, powered by wreq.
Features
Async and Blocking Clients
Plain bodies, JSON, urlencoded, multipart
HTTP Trailer
Cookie Store
Redirect Policy
Original Header
Rotating Proxies
Connection Pooling
Streaming Transfers
Zero-Copy Transfers
WebSocket Upgrade
HTTPS via BoringSSL
Free-Threaded Safety
Automatic Decompression
Certificate Store (CAs & mTLS)
Example
The following example uses the asyncio runtime with wreq installed via pip:
pip install wreq
And then the code:
import asyncio
from wreq import Client, Emulation
async def main():
async with Client(emulation=Emulation.Chrome154) as c:
async with c.get("https://pingly.us.kg/api/all") as r:
r.raise_for_status()
print(await r.text())
if __name__ == "__main__":
asyncio.run(main())
Due to the complexity of TLS encryption and the widespread adoption of HTTP/2, browser fingerprints such as JA3, JA4, and Akamai cannot be reliably emulated using simple fingerprint strings. Instead of parsing and emulating these string-based fingerprints, wreq provides fine-grained control over TLS and HTTP/2 extensions and settings for precise browser behavior emulation.
Device Emulation
TLS and HTTP/2 fingerprints are often identical across various browser models because these underlying protocols evolve slower than browser release cycles. 100+ browser device emulation profiles are maintained in wreq.
Building
Platforms
Linux(glibc/musl): x86_64, aarch64, armv7, i686
macOS: x86_64,aarch64
Windows: x86_64,i686,aarch64
Android: aarch64, x86_64
Development
Install the BoringSSL build environment by referring to boringssl.
Our benchmark suite compares Python HTTP clients over HTTPS HTTP/1.1 and HTTP/2. It tests complete and streamed uploads, reading every response to the end. The results include client versions and machine details so you can check the conditions behind each measurement. Performance varies by workload and environment.
Services
Help sustain the ongoing development of this open-source project by reaching out for commercial support. Receive private guidance, expert reviews, or direct access to the maintainer, with personalized technical assistance tailored to your needs.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
Sponsors
35M+ residential IPs with 99.9% success rates
UK-based Byteful provides ethically sourced residential, mobile, static residential (ISP), and datacenter proxies. Its API-first scraping, data collection, and AI automation tools handle tens of billions of monthly requests.
With free geo-targeting and ~0.5s response times, Byteful helps you collect data at scale. Use code WREQ10 for 10% off residential proxies.
Captcha solving can be slow and unreliable, but EzCaptcha delivers fast, reliable solving through a simple API — supporting a wide range of captcha types with no complex integration required.
Designed for developers, it offers high accuracy, low price, low latency, and easy integration, helping you automate verification while keeping traffic secure and user flows smooth.
TLS fingerprinting alone isn't enough for modern bot protection. Hyper Solutions provides the missing piece - API endpoints that generate valid antibot tokens for:
Akamai • DataDome • Kasada • Incapsula
No browser automation. Just simple API calls that return the exact cookies and headers these systems require.