A Traefik-like reverse proxy implemented in Python (asyncio + Starlette).
Project description
python-traefik
A minimal Traefik-like reverse proxy implemented in Python.
Features (MVP)
- Entrypoints (HTTP listeners)
- Routers with rule parsing (Host, PathPrefix, Path)
- Services with load-balanced servers (round-robin)
- Reverse proxy forwarding (async httpx)
- Optional health checks
- Prometheus metrics endpoint
Quickstart
Install deps (dev)
pip install -e .
Run
python-traefik run --config examples/config.yml
Test routing
curl -H "Host: example.com" http://localhost:8000/
Config Example
See examples/config.yml.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_traefik-0.2.0.tar.gz
(14.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_traefik-0.2.0.tar.gz.
File metadata
- Download URL: python_traefik-0.2.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2fa549db444ef8dcefd9625eee4b9f11b2a978cac53d947c9fc21efdac48c37
|
|
| MD5 |
8b4a85c6aa773f5fe9c596ff8a21ef5d
|
|
| BLAKE2b-256 |
323029f9cf4094a5fe8317310ed96017e9a51eb38487d681cd126fa17278d5ba
|
File details
Details for the file python_traefik-0.2.0-py3-none-any.whl.
File metadata
- Download URL: python_traefik-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a58d439334e4d398450786fa2e496c9b4d916ed12e36e53d232c1839d1aafe82
|
|
| MD5 |
2fe9163f4d2dc8e0de60ec844b863e60
|
|
| BLAKE2b-256 |
f63ccfc95285080b496ec67e4c15bc2792d3f3f94280609a62e7398772b6826a
|