Universal asyncio multiplexer for TLS, SOCKS5, and HTTP CONNECT on a single port
Project description
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
License
MIT © 2026 Valentin Voltecc
Contact
Email: volttecc@gmail.com
Telegram: @volttecc
GitHub: VoltaStrasse
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smart_proxy_multiplexer-1.0.0.tar.gz.
File metadata
- Download URL: smart_proxy_multiplexer-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d757b4d6a9c488fb50de8a93970412f03b2dae2bfd36f5725156afa8b76981
|
|
| MD5 |
89f2c9aa0fce0414ab6ecebfb649eac6
|
|
| BLAKE2b-256 |
f6c78b9746cd41a966fc0363be23950497a16cf0de6573dd376d5263ff361097
|
File details
Details for the file smart_proxy_multiplexer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: smart_proxy_multiplexer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
308fef999484e470c3af8d2f4177ca363fa9ddfa5bf9449e6a2ad82ddd18bc5f
|
|
| MD5 |
442347c380f40ce5f1a664753b40ab6f
|
|
| BLAKE2b-256 |
6a821ad243b2a77f8da5fc0941b31ddc5e44c8ab6e705dccf892eea6b8c784ee
|