Skip to main content

Universal asyncio multiplexer for TLS, SOCKS5, and HTTP CONNECT on a single port

Project description

Smart Proxy Multiplexer

License Python Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_proxy_multiplexer-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_proxy_multiplexer-1.0.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for smart_proxy_multiplexer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b3d757b4d6a9c488fb50de8a93970412f03b2dae2bfd36f5725156afa8b76981
MD5 89f2c9aa0fce0414ab6ecebfb649eac6
BLAKE2b-256 f6c78b9746cd41a966fc0363be23950497a16cf0de6573dd376d5263ff361097

See more details on using hashes here.

File details

Details for the file smart_proxy_multiplexer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_proxy_multiplexer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 308fef999484e470c3af8d2f4177ca363fa9ddfa5bf9449e6a2ad82ddd18bc5f
MD5 442347c380f40ce5f1a664753b40ab6f
BLAKE2b-256 6a821ad243b2a77f8da5fc0941b31ddc5e44c8ab6e705dccf892eea6b8c784ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page