Skip to main content

yumeclient

English | Русский

PyPI Python test License: MIT

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 Session and asyncio AsyncSession. 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 documentation is in English and Russian; every page links to its translation at the top.

The API itself has docstrings and type hints (py.typed).

Contributing

Bug reports, fingerprint captures and pull requests are welcome, in English or Russian. See CONTRIBUTING.md. Report vulnerabilities privately, as described in SECURITY.md.

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.1+ 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for yumeclient 0.8.2
File Actions
yumeclient-0.8.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for yumeclient-0.8.2-py3-none-win_amd64.whl
yumeclient-0.8.2-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.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
yumeclient-0.8.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for yumeclient-0.8.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
yumeclient-0.8.2-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for yumeclient-0.8.2-py3-none-macosx_11_0_universal2.whl

Total release size: 36.2 MB

Release files / yumeclient-0.8.2-py3-none-win_amd64.whl

Download URL yumeclient-0.8.2-py3-none-win_amd64.whl
Size 8.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
60d5e71e46d5ccb10cc91ea9a468aee5b119157415b1ed6dcd53864c510bad10
BLAKE2b-256 checksum
How to use checksums
e7cdcc189627b3a8f7cd9cd2bdacd92508bc0e7511dd349a637963bcc680df3a
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 log

Release files / yumeclient-0.8.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL yumeclient-0.8.2-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
927857fb6c33300ba6c055d8203e2b15d75f878e7602d2856980af271050aadd
BLAKE2b-256 checksum
How to use checksums
6f98dec7dbcb3d8ffa1e98442965b0cf80c065f3a97fcf9bb0c5bfa6d448d440
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 log

Release files / yumeclient-0.8.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL yumeclient-0.8.2-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
51cd7a7da192e1573fe09a3b2740b030330063050ec80e0b85071b7edb9c1560
BLAKE2b-256 checksum
How to use checksums
4c09d5afc6f49ef201a967bcf58bd503995cc9d5b075a23435bf41291804f7a1
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 log

Release files / yumeclient-0.8.2-py3-none-macosx_11_0_universal2.whl

Download URL yumeclient-0.8.2-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
12e6b6023ff4b9d8a667d53bf55bc17ae184f6497e261973fb428201a68b0c16
BLAKE2b-256 checksum
How to use checksums
c39857bc96c4e328f4ed1b6752e5d1c669361fcdd05d8f4a5df46f61237780b5
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 log

Security for yumeclient 0.8.2

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.

Select from 4 files

Attestation for yumeclient-0.8.2-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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page