Skip to main content

curlpro

An HTTP client with a browser's network fingerprint: the TLS ClientHello, the HTTP/2 and HTTP/3 frames, header order and header case.

pip install curlpro
import curlpro

with curlpro.Session("chrome-151-windows") as s:
    r = s.get("https://example.com")
    print(r.status, r.text[:200])

Neither Go nor a compiler is needed: the native library and all 50 profiles are already inside the wheel, and the profiles load themselves.

Why another one

The existing clients keep their browser profiles in compiled code: a new Chrome comes out every four weeks, and each time that means editing C or Go, rebuilding and releasing. Here a profile is data, and it can be registered at runtime:

curlpro.register_profile({
    "name": "chrome-152-windows",
    "based_on": "chrome-151-windows",
    "headers": {"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/152.0.0.0 ..."},
})

Your own fingerprint, without a request

What a server would see is computed locally, from the same ClientHello bytes that would go on the wire. No network, no oracle:

with curlpro.Session("chrome-151-windows") as s:
    fp = s.fingerprint()
    print(fp.ja4)       # t13d1516h2_8daaf6152771_806a8c22fdea
    print(fp.akamai)    # 1:65536;2:0;4:6291456;6:262144|15663105|0|m,a,s,p

Checked against 50 captures: JA4 50/50, JA3N 50/50, Akamai 50/50.

audit() answers the second question — the one people actually lose days to. Not "does my fingerprint look right" but "does anything here disagree with anything else", because that is what gives a client away:

for finding in s.audit():
    print(finding)

Personas

Profile, proxy, device, headers and cookies — one identity, one file:

p = curlpro.Persona.new("chrome-151-windows", proxy="http://user:pass@host:8080")
p.save("accounts/user42.json")

p = curlpro.Persona.load("accounts/user42.json")
with p.session() as s:
    s.get("https://example.com/")
p.save()          # the cookies moved on; the identity did not

requests compatibility

import curlpro.requests as requests

r = requests.get("https://example.com/", timeout=10)

Existing code changes one import. It is a subset, and it says so: an argument the shim cannot honour is refused with a reason rather than ignored.

What is inside

A thin ctypes wrapper over a native library written in Go: the handshake is driven by uTLS, HTTP/2 by fhttp, QUIC by uquic.

The fingerprint is checked against tls.browserleaks.com: Chrome 151 gives t13d1516h2_8daaf6152771_806a8c22fdea — the same JA4 as the live browser.

Boundaries

The library covers the network layer. It does not forge the JS fingerprint (canvas, WebGL, navigator) — that is the browser's level, and the answer there is Playwright. Matching the network fingerprint is necessary but not sufficient: modern systems score JA4 together with JA4H, JA3S/JARM and behaviour.

Cleartext http:// and ws:// work too. There is no ClientHello and so no TLS fingerprint there, but the HTTP/1.1 half of the profile still applies — the header order and case — and that is all a plain-HTTP peer can see anyway. The point is not masking: a caller whose own service speaks plain HTTP, a solver or an internal API, should not need a second HTTP client beside this one.

HTTP/1.1, HTTP/2, HTTP/3 and WebSocket are supported, along with cookies, redirects, proxies (HTTP CONNECT and SOCKS5), multipart, streaming reads and uploads, and an asynchronous API.

# WebSocket: the handshake follows the profile's template, permessage-deflate works
with curlpro.Session() as s:
    with s.websocket("wss://echo.websocket.org/", max_message_size=1 << 20) as ws:
        ws.send("hello")         # str   -> a text frame
        ws.send(b"\x00\xff")     # bytes -> a binary one
        for message in ws:       # until the server closes: curlpro.WebSocketClosed;
            print(message)       # a silence timeout is CurlProError with .code == "timeout"

Three limits, each by name: connect_timeout for connecting, response_timeout for the wait until the response headers arrive, timeout for the whole request. The middle one is the gap the other two leave — a server that accepts and then thinks — and it does not bound the body. Expect(encoding="utf-8") refuses a page that came back in cp1251 instead of silently decoding it into mojibake.

# A large file goes as a stream rather than through memory
with curlpro.Session() as s:
    s.post("https://example.com/upload", body_file="archive.zip")

# The connection is reused between requests, as a browser's is. keep_alive=False
# gives every request its own — needed when a balancer pins a client to one node.
with curlpro.Session(keep_alive=False) as s:
    s.get("https://example.com/")

The HTTP/3 fingerprint is checked against Chrome 144 on quic.browserleaks.com:

with curlpro.Session("chrome-151-windows", http3=True) as s:
    print(s.get("https://quic.browserleaks.com/fp").json()["h3_text"])
    # 1:65536;6:262144;7:100;51:1;GREASE|GREASE|984832|m,a,s,p

The QPACK dynamic table is supported by a decoder of our own: the profile advertises a capacity as Chrome does, and a server that uses it gets parsed.

JA4H can be left out of the build: it is the one component under a different licence (FoxIO License 1.1, patent-pending), and -tags nofoxio excludes it while leaving every other fingerprint intact. fingerprint().ja4h_available says which build is in use. The wheels here are built with it.

Install

pip install curlpro

Nothing to compile: the native library and all 50 profiles travel inside the wheel. Wheels are built for Linux (x86-64 and ARM64, glibc 2.28+), macOS 13+ (Intel and Apple Silicon) and Windows x64. The macOS 13 floor is not ours to choose: that is what Go 1.27 requires, and the native part is built with it.

Platforms outside that list — Alpine and other musl distributions, Windows on ARM, older glibc or macOS — have no wheel. There the source archive is built by hand, and Go and a C compiler are required: pip install alone would leave the package without its native part, and the failure would come at the first call rather than at install time.

pip download curlpro --no-binary :all: --no-deps
tar -xzf curlpro-*.tar.gz && cd curlpro-*/go
CGO_ENABLED=1 go build -buildmode=c-shared -o ../curlpro/lib/libcurlpro.so ./lib

The library is looked up through CURLPRO_LIBRARY, then in curlpro/lib/, then in dist/.

Full documentation and sources — github.com/int3re/curlpro.

Metadata

Release files for curlpro 0.38.0

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

Source distribution (sdist)

Source distribution for curlpro 0.38.0
File Size Uploaded Provenance Actions
curlpro-0.38.0.tar.gz 911.9 kB With provenance Details for curlpro-0.38.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for curlpro 0.38.0
File Actions
curlpro-0.38.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for curlpro-0.38.0-py3-none-win_arm64.whl
curlpro-0.38.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for curlpro-0.38.0-py3-none-win_amd64.whl
curlpro-0.38.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for curlpro-0.38.0-py3-none-manylinux_2_28_x86_64.whl
curlpro-0.38.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for curlpro-0.38.0-py3-none-manylinux_2_28_aarch64.whl
curlpro-0.38.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for curlpro-0.38.0-py3-none-macosx_13_0_x86_64.whl
curlpro-0.38.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for curlpro-0.38.0-py3-none-macosx_13_0_arm64.whl

Total release size: 55.6 MB

Release files / curlpro-0.38.0.tar.gz

Download URL curlpro-0.38.0.tar.gz
Size 911.9 kB
Tags Source
SHA-256 checksum
How to use checksums
86a85e60c672c6b9ad3654b8d9eae965f22736c9d812000b0d3a8af25dd3eb3e
BLAKE2b-256 checksum
How to use checksums
1f622ef7ea0cd804d03309272c52b112df1db3e832ca0606fba5f05d9bbc06b1
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-win_arm64.whl

Download URL curlpro-0.38.0-py3-none-win_arm64.whl
Size 10.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
b7a09cef4a3f7cf2d3d8d634b3e04d867787ecdb8fd62a56b1da08ed6ca5d541
BLAKE2b-256 checksum
How to use checksums
317fc9d343bb2fd6b7fc9c8cbe3ae4bd4df844d6294f1112d0b10f1e7ed25381
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-win_amd64.whl

Download URL curlpro-0.38.0-py3-none-win_amd64.whl
Size 10.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
781b91ee34164174a36f854cd2ac34ed8dd4e2d5e688248c4a34af94d95f177f
BLAKE2b-256 checksum
How to use checksums
fc17e203f0091d8bea369842c40d578ec8f6125c243a212ee1b78a2d61d2ace3
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-manylinux_2_28_x86_64.whl

Download URL curlpro-0.38.0-py3-none-manylinux_2_28_x86_64.whl
Size 11.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3cfae1780f19f9b30b2f50ed3da5181e91641f13f6ad8922a27ffd2d412f30c8
BLAKE2b-256 checksum
How to use checksums
be2206ec6e6b81cee333233d5875a90d48755c39e1f4237ef2456081f8fc764b
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-manylinux_2_28_aarch64.whl

Download URL curlpro-0.38.0-py3-none-manylinux_2_28_aarch64.whl
Size 10.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
cbf7eca5ed87145600f1324de20b3389175cc50a86cf147e47488c7349d52ae1
BLAKE2b-256 checksum
How to use checksums
315a6e2a8084da8be7a046e94d09ba89edc40e5604bb4d4fd76d646e6de59196
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-macosx_13_0_x86_64.whl

Download URL curlpro-0.38.0-py3-none-macosx_13_0_x86_64.whl
Size 6.4 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
20476ba37f63693e735fdbe76c9882ce75017745ac6b60968cc6069697e89e6e
BLAKE2b-256 checksum
How to use checksums
724ba4f81b2ecaafdf78b832a295a1f2697e0eb112c56c33705da48e954a6836
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 8, 2026.

Transparency log

Release files / curlpro-0.38.0-py3-none-macosx_13_0_arm64.whl

Download URL curlpro-0.38.0-py3-none-macosx_13_0_arm64.whl
Size 6.0 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
82c43e689097c5f165151e41d1ad6ad366f97b83a1161d2abc6fc6e5091a05ee
BLAKE2b-256 checksum
How to use checksums
84be4a40d7baa238be4046ff61579704358009713e2c2b793f9ede9ed7840ffd
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 8, 2026.

Transparency log

Security for curlpro 0.38.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 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for curlpro-0.38.0.tar.gz

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 8, 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.38.0 This release

7 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