yumeclient
A Python HTTP client that sends requests the way real browsers and mobile apps do: the same
TLS ClientHello, the same HTTP/2 and HTTP/3/QUIC handshake, the same headers in the same
order. Sync and asyncio APIs in the style of requests.
from yumeclient import Session
with Session(client_identifier="chrome_152") as s:
r = s.get("https://tls.peet.ws/api/all")
print(r.status_code, r.http_version, r.fingerprint["ja4"])
Features
- 93 client profiles: Chrome 103–152, Edge, Brave, Opera, Firefox 102–148, Safari on macOS, iOS and iPadOS, Tor Browser, Android apps on okhttp. Each profile is a ClientHello, HTTP/2 settings, and a set of default headers for the browser and its OS.
- HTTP/3 and QUIC captured from real browsers for 53 profiles: QUIC ClientHello, transport parameters, packet layout, HTTP/3 SETTINGS, priorities and QPACK streams.
- HTTP/1.1, HTTP/2, HTTP/3 and h2c. Protocol selection is strict: asking for HTTP/2 never falls back to HTTP/1.1 without telling you.
- Sync
Sessionand asyncioAsyncSession. Cancelling an asyncio task cancels the request on the wire, and Ctrl+C interrupts a blocking call. - Typed errors and timeouts. Split connect, read, write and total timeouts, and streaming responses.
- Cookies like a browser. An RFC 6265 cookie jar with the public suffix list, which you can export and import (Cookie-Editor JSON).
- Proxies. HTTP(S), SOCKS4/4a/5/5h, and QUIC through SOCKS5 with the same fingerprint.
- Custom TLS. A ClientHello from a JA3 string, low-level TLS, HTTP/2 and ECH options.
- Diagnostics. Every response carries the fingerprint that actually went out (JA3, JA4, Akamai). You can also diff two fingerprints, save a client setup as a JSON profile, and get a redacted trace for bug reports.
- Prebuilt wheels with no Python dependencies.
Install
pip install yumeclient
Wheels are published for Windows x64, Linux x86-64 and aarch64 (glibc 2.17+), and macOS 11+ (universal2), all for Python 3.11+. Other platforms can build the native library from source; see installation.
Quickstart
import yumeclient
# one request with the default profile (the latest Chrome)
r = yumeclient.get("https://httpbin.org/get", params={"q": "test"})
print(r.json()["args"])
# a session keeps connections, cookies and headers
with yumeclient.Session(client_identifier="firefox_148", timeout=20) as s:
s.headers["Referer"] = "https://example.com/"
r = s.post("https://httpbin.org/post", json={"name": "yume"})
r.raise_for_status()
print(r.http_version, r.json()["json"])
import asyncio
from yumeclient import AsyncSession
async def main():
async with AsyncSession(client_identifier="safari_ios_18_5") as s:
responses = await asyncio.gather(*(s.get(f"https://httpbin.org/get?i={i}") for i in range(10)))
print([r.status_code for r in responses])
asyncio.run(main())
from yumeclient import Session, TimeoutConfig, ReadTimeout, ProxyError
with Session(proxy="socks5://user:pass@127.0.0.1:1080",
timeout=TimeoutConfig(total=60, connect=5, read=15),
http_version="3") as s: # HTTP/3 racing TCP, like Chrome
try:
with s.get("https://example.com/large.bin", stream=True) as r:
for chunk in r.iter_bytes(1 << 20):
...
except (ReadTimeout, ProxyError) as e:
print(e.kind, e.stage, e.retryable)
Documentation
The full documentation is in Russian:
- USAGE.md: a guide with examples for common tasks.
- docs/: the reference, one page per topic:
- sessions, requests and responses;
- profiles and protocols;
- custom TLS, timeouts and errors, cookies and proxies;
- diagnostics, limitations and development.
- examples/: runnable scripts. All of them run in CI against a local server.
- CHANGELOG.md: release notes.
The API itself has docstrings and type hints (py.typed).
How it works
The Python package is a thin layer: sessions, headers, the cookie jar, validation and
errors. It calls a Go library through ctypes. The Go side is built on
bogdanfinn/tls-client,
uTLS and
quic-go. Those modules are vendored with patches in
native/third_party/, and CI checks that the copies match upstream plus the patches. The Go
side builds each profile's handshakes, keeps connection pools, follows redirects with
per-hop cookies, and measures the fingerprint of what it sent.
The library reproduces what a client sends over the network. It does not reproduce the TCP/IP stack of another OS, JavaScript, or browser behaviour. See limitations.
Development
./scripts/build-native.ps1 # Windows; Linux/macOS: sh ./scripts/build-native.sh
pip install -e ".[test]"
python -m pytest -q # offline: local HTTP/1.1, HTTP/2, HTTP/3 and proxy servers
Building needs Go 1.24+ and a C compiler. See development for patching upstream modules, recording browser fingerprints, and releases.
License
MIT, see LICENSE. The native library includes code from bogdanfinn/tls-client
(a BSD-style license, UPSTREAM-LICENSE), Go's net/http and uTLS
(BSD 3-clause), and quic-go and qpack (MIT). This product includes software developed by
Bogdan Finn. Details are in THIRD_PARTY_NOTICES.md.
Use it for testing, research and interoperability, and follow the terms of the services you send requests to.
Contributors: randomtempusername123.
Metadata
Release files for yumeclient 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| yumeclient-0.8.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for yumeclient-0.8.1-py3-none-win_amd64.whl |
| yumeclient-0.8.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for yumeclient-0.8.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| yumeclient-0.8.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for yumeclient-0.8.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| yumeclient-0.8.1-py3-none-macosx_11_0_universal2.whl | Python 3 | none | macOS 11.0+ universal2 (ARM64, x86-64) | Details for yumeclient-0.8.1-py3-none-macosx_11_0_universal2.whl |
Total release size: 36.2 MB
Release files / yumeclient-0.8.1-py3-none-win_amd64.whl
| Download URL | yumeclient-0.8.1-py3-none-win_amd64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
380ec1e5810d345c7fd5f69b39cebd069060b7e7c81e546bc62788da83ec72fa
|
|
BLAKE2b-256 checksum How to use checksums |
4a74f4c9bd156c801690886c15c6c24c37eea1015840da97080890fa187b159d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / yumeclient-0.8.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | yumeclient-0.8.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
91497fcfc5097b6badb87547d5a3bbb8bb8058d5ea66a5d9918a4f8bef46b196
|
|
BLAKE2b-256 checksum How to use checksums |
42c431344ebfa2a986103187896c4b4a4b32550e379308b737043440b752527a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / yumeclient-0.8.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | yumeclient-0.8.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
bc6a401409ae3f4ef1826738920236b8715a20d4f6f3ffa2dddd28cd600eb71b
|
|
BLAKE2b-256 checksum How to use checksums |
7d84c0f496ee915c30cec01c20c724df986ee62d38c1702d49e3256956b8cd07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / yumeclient-0.8.1-py3-none-macosx_11_0_universal2.whl
| Download URL | yumeclient-0.8.1-py3-none-macosx_11_0_universal2.whl |
|---|---|
| Size | 9.9 MB |
| Tags | Python 3 macOS 11.0+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
cb6a0a15197d7f591c354e2233c4d9ba86970b180636079597de6c30f8cc6e96
|
|
BLAKE2b-256 checksum How to use checksums |
914b61a37f4514fcce413aa8b140fe08cee5fa26fec686ea10eb91abbf044e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for yumeclient 0.8.1
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.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for yumeclient-0.8.1-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA 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.