Smart Proxy Multiplexer
A lightweight, high-performance Python library that handles TLS, SOCKS5, and HTTP CONNECT simultaneously on a single port.
Features
- 🔄 Protocol auto‑detection – reads the first byte to route TLS, SOCKS5, or HTTP
- 🔒 Native TLS termination – uses your own SSL certificates
- 🌐 DoH proxying – intercepts DNS‑over‑HTTPS to Google DNS
- 🎭 Traffic masking – returns HTML on plain GET requests
- 🚀 Async/await – built on asyncio for high concurrency
- 🔗 Parent proxy chaining – supports SOCKS5/HTTP upstream
- 📦 Zero external dependencies – only Python 3.10+ standard library
Installation
pip install smart-proxy-multiplexer
Quick Start
python
from smart_proxy import ProxyMultiplexer
import asyncio
async def my_auth(login, password):
if login == "demo" and password == "demo":
return {"host": "192.168.1.100", "port": 1080, "login": "user", "password": "pass"}
return None
mux = ProxyMultiplexer(
host="0.0.0.0",
port=8443,
auth_callback=my_auth,
)
asyncio.run(mux.start())
How It Works
text
Client (TLS/SOCKS5/HTTP) → [Port 443] → Multiplexer → Parent SOCKS5 → Internet
│
├─ DoH requests → Google DNS (8.8.8.8)
└─ GET without auth → HTML page
Running Tests
The library includes a comprehensive test suite using pytest.
- Install development dependencies:
pip install -e .[dev]
- Run the tests:
pytest tests/test_multiplexer.py -v
All tests are isolated and run on random ports. No external services are required.
License MIT © 2026 Valentin Volttecc
Contact Email: volttecc@gmail.com
Telegram: @volttecc
GitHub: VoltaStrasse
Metadata
Release files for smart-proxy-multiplexer 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smart_proxy_multiplexer-1.0.1.tar.gz | 12.0 kB | With provenance | Details for smart_proxy_multiplexer-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smart_proxy_multiplexer-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for smart_proxy_multiplexer-1.0.1-py3-none-any.whl |
Total release size: 22.2 kB
Release files / smart_proxy_multiplexer-1.0.1.tar.gz
| Download URL | smart_proxy_multiplexer-1.0.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d212f3e38f5829da6c45801a87a609bc2b62931290928fd9155039799b440784
|
|
BLAKE2b-256 checksum How to use checksums |
c1667c676b3f6813605a4a06e86b3d959d2f70e7cede6ec0720d568ad08a7c27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 17, 2026.
Transparency logRelease files / smart_proxy_multiplexer-1.0.1-py3-none-any.whl
| Download URL | smart_proxy_multiplexer-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b08dbd82f9b76634768bb4061e39136d57e8cd5b1ee2eccf264bf1d495cc1e3b
|
|
BLAKE2b-256 checksum How to use checksums |
c5dbd6c1a4a6fa4c1e4c4bfde2c4ac1f47ae1054f868ec7e49243a7ca617181a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 17, 2026.
Transparency logSecurity for smart-proxy-multiplexer 1.0.1
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 2 files in this release have been uploaded with provenance metadata.
Attestation for smart_proxy_multiplexer-1.0.1.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 Jul 17, 2026.
Transparency logA 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.