Skip to main content

impersonate-proxy

pypi python build tests license impersonate-proxy logo

HTTP/HTTPS proxy that impersonates browser TLS fingerprints using curl_cffi that can be effective in avoiding blocks against non-browser clients.

Design Philosophy

impersonate-proxy does not attempt to manually re-implement browser headers or replicate curl-impersonate in Python. Instead, it acts as a lightweight adapter:

  • Strips conflicting non-browser client headers (e.g. User-Agent: python-httpx) so native curl-impersonate defaults shine through.
  • Preserves request payload, auth, and shape semantics (Cookie, Authorization, Host, Sec-Fetch-* for XHR).
  • Delegates all browser TLS fingerprinting and header generation directly to curl-impersonate via curl_cffi.
  • Overrides curl_cffi's residual tells with a curated, platform-coherent fingerprint — full-build User-Agent, complete Sec-CH-UA family, and canonical HTTP/2 header order for Chrome targets, UA-only for Firefox targets — enabled by default (--no-fingerprint-real to disable).

Pypi: pypi.org/project/impersonate-proxy

GHCR: github.com/psaintelligence/impersonate-proxy/pkgs/container


Quick Start (Docker)

Spin up the proxy container:

docker run --rm -p 8899:8899 \
  -v /tmp/impersonate-certs:/home/impersonate/.config/impersonate-proxy \
  ghcr.io/psaintelligence/impersonate-proxy:latest

Once started, configure your client to trust the CA and use the proxy:

# Export the generated CA cert to trust the proxy
export SSL_CERT_FILE=/tmp/impersonate-certs/ca.crt

# Issue request through the proxy
curl --silent -x http://127.0.0.1:8899 https://tls.browserleaks.com/json

Quick Start (pip / uv)

Install and start the proxy locally:

# Install via pipx from pypi
pipx install impersonate-proxy

# Or install via uv from source
uv pip install git+https://github.com/psaintelligence/impersonate-proxy.git

# Start the proxy (default: 127.0.0.1:8899)
impersonate-proxy

Documentation

Full guides and configuration details are available at psaintelligence.github.io/impersonate-proxy.

Metadata

Release files for impersonate-proxy 0.7.2

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

Source distribution (sdist)

Source distribution for impersonate-proxy 0.7.2
File Size Uploaded Provenance Actions
impersonate_proxy-0.7.2.tar.gz 216.5 kB With provenance Details for impersonate_proxy-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for impersonate-proxy 0.7.2
File Interpreter ABI Platform Actions
impersonate_proxy-0.7.2-py3-none-any.whl Python 3 none any Details for impersonate_proxy-0.7.2-py3-none-any.whl

Total release size: 251.6 kB

Release files / impersonate_proxy-0.7.2.tar.gz

Download URL impersonate_proxy-0.7.2.tar.gz
Size 216.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8fe4bef17c13f1f2d9324279e90291c29a7e02984452c1dfb470c5f66ff967db
BLAKE2b-256 checksum
How to use checksums
6ebcdb7ad07507d0581ecc107f03667bdd2bc29c4608bf95a2352e1648d72d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 26, 2026.

Transparency log

Release files / impersonate_proxy-0.7.2-py3-none-any.whl

Download URL impersonate_proxy-0.7.2-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
358ab49392fd082b1d68e2d4fd248880893f674cca054a3d3199f6853343b130
BLAKE2b-256 checksum
How to use checksums
32ae44e625e7aa58f41f922b0dbc76efae22f4f642d787daaca96cbeb37885b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 26, 2026.

Transparency log

Security for impersonate-proxy 0.7.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for impersonate_proxy-0.7.2.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 26, 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