proxy.py
\u26a1 Fast \u2022 \U0001fab6 Lightweight \u2022 \U0001f51f Dependency \u2022 \U0001f50c Pluggable \u2022 \U0001f608 TLS interception \u2022 \U0001f512 DNS-over-HTTPS \u2022 \U0001f525 Poor Mans VPN \u2022 \u23ea Reverse & \u23e9 Forward \u2022 \U0001f46e\U0001f3ff Proxy Server framework \u2022 \U0001f310 Web Server framework \u2022 \u27b5 \u27b6 \u27b7 \u27a0 PubSub framework \u2022 \U0001f477 Work acceptor & executor framework.
What it is and what it does
proxy.py is a full-featured HTTP proxy server framework written in Python that operates as both a forward and reverse proxy with built-in support for TLS interception, DNS-over-HTTPS, and custom request/response manipulation. It uses asyncio for threadless, event-driven concurrency and is designed to handle high connection volumes efficiently. The package is structured around a plugin architecture, allowing developers to intercept and modify HTTP traffic, implement custom routing, cache responses, perform authentication, and integrate with external services without modifying the core proxy code.
The framework is suitable for development, testing, monitoring, and production deployment scenarios. It can be run standalone from the command line, embedded directly in Python applications, deployed via Docker, or used as a library for building custom proxy solutions. The package includes utilities for HTTP request/response building, TCP socket management, and PKI operations, plus a dashboard for traffic inspection and Prometheus metrics support.
Use it for:
- Intercept and modify HTTP requests/responses during development and testing without external tools.
- Implement custom DNS resolution or traffic filtering rules via plugins for network control.
- Deploy as a lightweight reverse proxy or load balancer for small to medium workloads.
- Perform TLS interception for security research, monitoring, or compliance auditing.
- Build a drop-in ngrok alternative (GROUT) to expose local services over SSH tunnels or public URLs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A lightweight, pluggable HTTP proxy server framework that handles forward proxying, reverse proxying, and TLS interception with support for custom plugins and asyncio-based concurrency.
Yes. The package is production-stable, actively maintained, has zero known vulnerabilities, installs with no dependencies, and offers a flexible plugin-based architecture suitable for both simple proxy use cases and complex custom implementations. The low install friction and broad platform support make it a practical choice for developers needing HTTP proxy functionality.
Install
proxy-py on PyPI
pip
pip install proxy-pyuv
uv add proxy-pypoetry
poetry add proxy-pyInstalling proxy.py
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent commits and a stable release history spanning over a decade.
License in practice
BSD license is permissive; you can use, modify, and distribute this package with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install proxy.py
from proxy.py import Proxy
proxy = Proxy()
proxy.start()
Requires Python 3.6 or later; some features like TLS interception may require additional system configuration or certificates.
Verify before relying
- Whether the package's asyncio implementation actually achieves the benchmark throughput of 51667 requests/sec in typical production environments.
- Specific resource requirements (memory, CPU) for handling sustained high-concurrency workloads.
- Compatibility and performance implications when running on Windows vs. POSIX systems.
Package facts
| License | 'BSD' (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 542 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,010,396/month — #4,515 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: proxy.py-2.4.10-py3-none-any.whl
Keywords: http, proxy, http proxy server, proxy server, http server, http web server, proxy framework, web framework, Python3
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pproxypproxy is an asynchronous proxy server that…
permissive · top 15,000 on PyPI
proxy-protocolParses and handles the PROXY protocol (v1 and…
permissive · top 5,000 on PyPI
django-revproxyA Django application that forwards HTTP…
copyleft · top 15,000 on PyPI
pyngrokpyngrok wraps the ngrok reverse-proxy binary…
permissive · top 5,000 on PyPI
pyftpdlibBuilds asynchronous FTP servers in Python with…
unclear · top 15,000 on PyPI
mitmproxymitmproxy is an interactive, SSL/TLS-capable…
permissive · top 5,000 on PyPI
SocketSwapSocketSwap intercepts and redirects network…
permissive · top 15,000 on PyPI
urllib3urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
authcaptureproxyIntercepts and logs authentication credentials…
permissive · top 15,000 on PyPI
PyPACPyPAC discovers proxy auto-config (PAC) files…
permissive · top 15,000 on PyPI