Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_traefik-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

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

Hashes for python_traefik-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b57e62c0423a12575ef6a1f801a3a1dc2bab94a3c5e8eadad851d261ddc3229c
MD5 4c67bad84cb8967fd9784fb81184865f
BLAKE2b-256 b59165e97d2223347dd179e6421f6395949905bb3af0c29452a921094f9f028b

See more details on using hashes here.

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

Hashes for python_traefik-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a45ec4ae9b02c8a9413f75938000018c1ded8148bf0ff6273ceaec5064ced21e
MD5 103b573f9f0947caecbe7f4617a765f2
BLAKE2b-256 c0ddbde240aff722c639573d2cfd81b3bf3e7efd7c90944dc9f0f41d6531bf9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page