pproxy is a Python proxy server that enables tunneling among remote servers using configurable regex rules. It supports various protocols like HTTP, SOCKS, and SSL. The current version is 2.7.9, with active development and releases typically occurring every few months to address bug fixes and new features.
pip install pproxyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to programmatically start a pproxy server using its `main` function. It configures the proxy to listen for HTTP connections on port 8080 and forward them to a remote SOCKS5 proxy running on localhost:1080. This mimics command-line invocation for embedded use.
Ensure your application's main loop or context is compatible with asyncio when embedding `pproxy.main()`. If you are running `main()` directly, it will handle the event loop.
Always include the protocol scheme (e.g., `http://`, `https://`, `socks5://`) when specifying listen and remote addresses. Consult the documentation for exact syntax.
Familiarize yourself with Python's `re` module syntax when defining complex remote rules. Test your regex patterns thoroughly to ensure they match traffic as intended.
No dependency data recorded yet.