Skip to main content

tamamo

PyPI Python test License: MIT

tamamo is an HTTP client for Python that passes for a real browser, right down to the TLS handshake. And probably the cutest one, too.

Many servers and CDNs identify a client by how it connects, not only by its User-Agent header. tamamo sends the same TLS ClientHello, HTTP/2 and HTTP/3 settings, and headers as the browser or app you choose, so your requests look like that client on the wire. You get a familiar get and post API with sync and asyncio sessions.

Features

  • 93 browser and app profiles: Chrome, Edge, Brave, Opera, Firefox, Safari on macOS, iOS, and iPadOS, Tor Browser, Android apps built on okhttp, the Zalando, Nike, Mesh, MMS, and Confirmed mobile apps, and the cloudscraper Python library. Each profile sets the TLS ClientHello, the HTTP/2 settings, and the default headers for its browser and operating system.
  • HTTP/3 over QUIC for 53 profiles, with fingerprints captured from real browsers: QUIC ClientHello, transport parameters, packet layout, HTTP/3 SETTINGS, priorities, and QPACK streams.
  • HTTP/1.1, HTTP/2, HTTP/3, and h2c, with strict version selection: when you ask for HTTP/2, tamamo never silently falls back to HTTP/1.1.
  • Sync and asyncio sessions. Cancelling an asyncio task cancels the request on the wire, and Ctrl+C interrupts a sync request.
  • Typed errors, automatic retries, streaming downloads, and separate timeouts for connecting, reading, writing, and the whole request.
  • An RFC 6265 cookie jar with the public suffix list, plus import and export in browser-extension JSON and Netscape cookies.txt formats.
  • HTTP, HTTPS, SOCKS4, SOCKS4a, SOCKS5, and SOCKS5h proxies, including HTTP/3 through SOCKS5.
  • Custom TLS fingerprints from a JA3 string, and low-level TLS, HTTP/2, and ECH options.
  • Built-in fingerprint checks: every response reports the JA3, JA4, and Akamai fingerprints of what tamamo sent.
  • Prebuilt wheels with no Python dependencies.

Installation

Install tamamo from PyPI:

python -m pip install tamamo

tamamo needs Python 3.11 or later. Prebuilt wheels are available for Windows x64, Linux x86-64 and aarch64 (glibc 2.17 or later), and macOS 11 or later (universal2). For other platforms and for building from source, see Installing tamamo.

Usage

A one-shot call impersonates the latest Chrome by default:

import tamamo

r = tamamo.get("https://httpbin.org/get", params={"q": "tamamo"})
print(r.status_code, r.http_version)
# 200 2

For several requests, use a session. It keeps connections, cookies, and headers, and you choose the client to impersonate when you create it:

from tamamo import Session

with Session(client_identifier="firefox_148", timeout=20) as s:
    r = s.post("https://httpbin.org/post", json={"name": "tamamo"})
    r.raise_for_status()
    print(r.json()["json"])
    # {'name': 'tamamo'}

AsyncSession has the same parameters and methods for asyncio:

import asyncio

from tamamo import AsyncSession


async def main():
    async with AsyncSession(client_identifier="safari_ios_18_5") as s:
        urls = [f"https://httpbin.org/get?page={i}" for i in range(5)]
        pages = await asyncio.gather(*(s.get(url) for url in urls))
        print([r.status_code for r in pages])
        # [200, 200, 200, 200, 200]


asyncio.run(main())

For a guided tour of sessions, profiles, headers, and request bodies, see Quickstart for tamamo.

How it works

The Python package is a thin layer that holds sessions, headers, and the cookie jar, validates options, and raises typed errors. It calls a native Go library through ctypes. The Go side is built on tls-client, a uTLS fork, and quic-go. It builds the handshakes, keeps connection pools, follows redirects with per-hop cookies, and measures the fingerprint of what it sent. tamamo doesn't reproduce the TCP/IP stack of another operating system, run JavaScript, or behave like a browser beyond the network requests. For more information, see About tamamo and Known limitations.

Documentation

The API has docstrings and type hints, and the package ships a py.typed marker for type checkers.

Get help

  • To ask a question or report a bug, open an issue in GitHub Issues.
  • To report a security vulnerability, follow the Security policy and report it privately.

Contributing

Bug reports, fingerprint captures from real browsers, and pull requests are welcome. For more information, see Contributing to tamamo. Everyone who takes part in the project follows the Contributor Covenant Code of Conduct.

License

tamamo is released under the MIT License. The native library includes code from tls-client (BSD-style license, see UPSTREAM-LICENSE), Go net/http and uTLS (BSD 3-clause), and quic-go and qpack (MIT). For details, see Third-party notices.

This product includes software developed by Bogdan Finn.

Use tamamo for testing, research, and interoperability, and follow the terms of the services you send requests to.

Metadata

Release files for tamamo 0.1.0

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 tamamo 0.1.0
File Actions
tamamo-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for tamamo-0.1.0-py3-none-win_amd64.whl
tamamo-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for tamamo-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tamamo-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for tamamo-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
tamamo-0.1.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for tamamo-0.1.0-py3-none-macosx_11_0_universal2.whl

Total release size: 36.3 MB

Release files / tamamo-0.1.0-py3-none-win_amd64.whl

Download URL tamamo-0.1.0-py3-none-win_amd64.whl
Size 8.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
900ec02cde2933fbcc4b894a419e15d3f514d839c853ddd6939c657114efb74c
BLAKE2b-256 checksum
How to use checksums
6dc65f5567bd789ffc1dba4df13182f352afa9bf9dcd086e128aa3baff662179
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 Dec 2, 2026.

Transparency log

Release files / tamamo-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tamamo-0.1.0-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
20f7983bdf5407ef8b0d002e7f7744d0ab98675b1171dd8c83803d5b02fe6279
BLAKE2b-256 checksum
How to use checksums
d92f2e93bb47f43106b8c3afd6955aaa89ff871df26920be6c4ba0a1ee66e2ef
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 Dec 2, 2026.

Transparency log

Release files / tamamo-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tamamo-0.1.0-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
66c66ab0e07678643abecc442a152823ce47e2efcdc0f83276d6470485d105b6
BLAKE2b-256 checksum
How to use checksums
a5c86cb05ba4e1255fd9f4d8f980060395417d43f2db93398edd220a45471a48
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 Dec 2, 2026.

Transparency log

Release files / tamamo-0.1.0-py3-none-macosx_11_0_universal2.whl

Download URL tamamo-0.1.0-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
739a19b3bf110f5f944f2c6ffc5b36af68687e9fda39e333fe6614c8d5e133b8
BLAKE2b-256 checksum
How to use checksums
d9ec496313b603a6e3df160e5fe6a500641f5d719b74fe3eb6ee48bb45269fde
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 Dec 2, 2026.

Transparency log

Security for tamamo 0.1.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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for tamamo-0.1.0-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 Dec 2, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

4 release files Full provenance

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