{"library":"pproxy","title":"pproxy - A Powerful Regex-Based Proxy Server","description":"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.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pproxy"],"cli":{"name":"pproxy","version":"pproxy 2.7.9"}},"imports":["from pproxy import main"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import sys\nfrom pproxy import main\n\n# Configure pproxy to listen on HTTP port 8080\n# and forward all requests to a SOCKS5 proxy at 127.0.0.1:1080.\n# This simulates running: python -m pproxy -l http://:8080 -r socks5://127.0.0.1:1080\n\nsys.argv = ['pproxy', '-l', 'http://:8080', '-r', 'socks5://127.0.0.1:1080']\nprint(\"Starting pproxy server on http://:8080, forwarding to socks5://127.0.0.1:1080...\")\nprint(\"Press Ctrl+C to stop.\")\n\ntry:\n    main()\nexcept KeyboardInterrupt:\n    print(\"\\npproxy server stopped.\")","lang":"python","description":"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}