
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
pygofastproxy
Advanced tools
A simple, fast, and secure HTTP reverse proxy for Python, powered by Go's fasthttp library.
Install the package:
pip install pygofastproxy
Start your backend server (e.g., Flask) on port 4000.
Run the proxy:
from pygofastproxy import run_proxy
run_proxy(target="http://localhost:4000", port=8080)
Send requests to http://localhost:8080.
pygofastproxy is a reverse proxy that sits in front of your Python web application to provide:
Client → pygofastproxy:8080 → Your Backend:4000
The proxy receives all client requests, adds security protections, and forwards them to your backend server.
Install from PyPI:
pip install pygofastproxy
Requirements:
from pygofastproxy import run_proxy
# Start the proxy (forwards :8080 to your backend at :4000)
run_proxy(target="http://localhost:4000", port=8080)
from pygofastproxy import run_proxy
run_proxy(
target="http://localhost:4000",
port=8080,
rate_limit_rps=5000,
allowed_origins="https://yourdomain.com"
)
| Parameter | Type | Default | Description |
|---|---|---|---|
target | str | "http://localhost:4000" | Backend server URL to proxy to |
port | int | 8080 | Port for proxy to listen on |
max_conns_per_host | int | 1000 | Maximum concurrent connections per host |
read_timeout | str | "10s" | Read timeout (e.g., "10s", "1m") |
write_timeout | str | "10s" | Write timeout (e.g., "10s", "1m") |
rate_limit_rps | int | 1000 | Requests per second limit (0 = unlimited) |
max_request_body_size | int | 10485760 | Max request body size in bytes (10MB default) |
allowed_origins | str | None | Comma-separated CORS origins |
You can also configure the proxy using environment variables:
PY_BACKEND_TARGET=http://localhost:4000
PY_BACKEND_PORT=8080
PROXY_MAX_CONNS_PER_HOST=2000
PROXY_READ_TIMEOUT=30s
PROXY_WRITE_TIMEOUT=30s
PROXY_RATE_LIMIT_RPS=5000
PROXY_MAX_REQUEST_BODY_SIZE=20971520
ALLOWED_ORIGINS=https://yourdomain.com
The proxy automatically adds security headers and protections:
allowed_origins is set, only requests from those origins are permittedUse the included Dockerfile and docker-compose.yml:
docker compose up --build
The compose file builds the proxy. Make sure your backend server is accessible at the URL specified in PY_BACKEND_TARGET (default: http://host.docker.internal:4000 for accessing host services from Docker).
Run the included test:
python test_functionality.py
Or test manually:
python3 -m http.server 4000python -m pygofastproxycurl http://localhost:8080Install Go from golang.org/dl
Increase rate_limit_rps or set to 0 for unlimited
Set allowed_origins to include your frontend domain
This project is licensed under the MIT License.
FAQs
A blazing-fast HTTP proxy for Python, powered by Go’s fasthttp library
We found that pygofastproxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.