A minimal 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.1.0.tar.gz
(14.8 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.1.0.tar.gz.
File metadata
- Download URL: python_traefik-0.1.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b57e62c0423a12575ef6a1f801a3a1dc2bab94a3c5e8eadad851d261ddc3229c
|
|
| MD5 |
4c67bad84cb8967fd9784fb81184865f
|
|
| BLAKE2b-256 |
b59165e97d2223347dd179e6421f6395949905bb3af0c29452a921094f9f028b
|
File details
Details for the file python_traefik-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_traefik-0.1.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 |
a45ec4ae9b02c8a9413f75938000018c1ded8148bf0ff6273ceaec5064ced21e
|
|
| MD5 |
103b573f9f0947caecbe7f4617a765f2
|
|
| BLAKE2b-256 |
c0ddbde240aff722c639573d2cfd81b3bf3e7efd7c90944dc9f0f41d6531bf9c
|