MaskTunnel Python Bindings
Python bindings for MaskTunnel — an HTTP(S) MITM proxy that adapts its browser fingerprint based on the request User-Agent.
This package wraps the Go implementation and exposes a Python-friendly API.
Overview
MaskTunnel is an HTTP proxy that dynamically changes its fingerprint to mimic real browsers (Chrome / Firefox / Safari / Edge) according to the User-Agent header in requests.
Key capabilities:
- Browser-like TLS fingerprints (JA3 / JA4)
- Browser-like HTTP/2 fingerprints (e.g. Akamai-style settings and frame patterns)
- Automatic selection based on User-Agent
- Optional response JavaScript injection
- Optional upstream proxy chaining
Installation
Using pip (Recommended)
pip install masktunnel
Build from source (sdist)
Building from source requires:
- Python 3.9+
- Go toolchain
- A C toolchain suitable for building Python extensions
Quick Start
Run a proxy server
from masktunnel import Server
server = Server()
print(f"Proxy running at: {server.addr}")
# Blocking; run in a thread if needed
server.start()
Use CLI
After installation:
masktunnel server --port 8080
API
Server
Create a server with options:
from masktunnel import Server, ServerOptions
opts = ServerOptions(
port="8080",
username="",
password="",
payload="",
upstream_proxy="",
user_agent="",
verbose=0,
)
server = Server(options=opts)
Common operations:
server.start()
server.stop()
server.reset_sessions()
Notes
- The native module is generated at build time into
masktunnellib/. - Prefer installing wheels when available; building from source depends on the local toolchain.
Links
Metadata
Release files for masktunnel 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| masktunnel-1.1.3.tar.gz | 22.1 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| masktunnel-1.1.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| masktunnel-1.1.3-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 | Details |
| masktunnel-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.0 MB
Release files / masktunnel-1.1.3.tar.gz
| Download URL | masktunnel-1.1.3.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06f1021db22b1d774db3a903ddc82d08fb8b140d4837ee1236a5e4a4599ac14a
|
|
BLAKE2b-256 checksum How to use checksums |
6b32e5467cafb1915839773048d1a99baa2ce7087b2fb8ef26fd05c534df2b84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 3, 2026.
Transparency logRelease files / masktunnel-1.1.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | masktunnel-1.1.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
bcc81a9e056a1feed155f012a5fcf78a26d6c4fd76183bcd1c847f84c2fe85b4
|
|
BLAKE2b-256 checksum How to use checksums |
cc85daf9e88f74a579dcd290c3d8d9cebb70582eb09146aebdb7f143cbf4353f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 3, 2026.
Transparency logRelease files / masktunnel-1.1.3-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
| Download URL | masktunnel-1.1.3-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 11.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
27aaae2019a0c302d88a53040a46a1c9533401319a3abfd0d624b44cbb01cb4c
|
|
BLAKE2b-256 checksum How to use checksums |
c7b165a775f6c925804fb76fefa4b6ceaed0fc79ea97db21e2ca428fe1f02b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 3, 2026.
Transparency logRelease files / masktunnel-1.1.3-py3-none-any.whl
| Download URL | masktunnel-1.1.3-py3-none-any.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36c5d8ae1470bf2dd3855da143bcfa122c2644ba5bf6744b8e2a37f8b7a9fe74
|
|
BLAKE2b-256 checksum How to use checksums |
804ad924c69fc97fcd45fa689b6240429cef16c5af2033f760642ebe8a6a7f7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 3, 2026.
Transparency log