qmetrics.net

Proxy.py

Pluggable Python proxy, web server and tunnel framework

Proxy.py has had no code changes for over 18 months (last commit 1 year ago).

proxy.py is a lightweight Python toolkit for forward and reverse proxying, TLS interception, DNS-over-HTTPS, embedded web servers, pub/sub, and a Grout feature for exposing local services.

Overview

proxy.py combines a fast, threadless proxy server with optional web server, reverse proxy, and pub/sub capabilities. Everything is implemented as plugins you can enable from the command line or embed in Python code.

It supports HTTP and HTTPS forwarding, man-in-the-middle TLS inspection, custom DNS resolution including Cloudflare, and SSH-tunneled operation. The Grout mode offers ngrok-style public exposure of local applications, including authentication and wildcard domain routing.

The project ships with many example plugins, Docker images, Homebrew packages, and testing helpers. It targets developers who need programmable network plumbing without pulling in large external dependencies beyond Python.

Key features

  • Forward and reverse HTTP proxy
  • TLS interception plugins
  • DNS-over-HTTPS resolvers
  • Grout localhost tunneling
  • Async threadless execution
  • Embedded web server mode
  • Extensible plugin API
  • Docker and Homebrew installs

Use cases

  • Run a local debugging proxy
  • Intercept TLS for testing
  • Expose localhost like a tunnel
  • Embed a proxy in Python apps
  • Customize proxy behavior with plugins

Open-source alternative to

ngrok
“A drop-in alternative to ngrok” source

Tags

Compare Proxy.py

Similar software

Netty

Event-driven Java framework for protocol servers and clients

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

★ 35.1k⟳ todayApache-2.0

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

WebRTC

Pure Go WebRTC stack for real-time media

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

★ 16.9k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

★ 14.4k⟳ 2 days agoApache-2.0