Skip to content

v0.1.1

Choose a tag to compare

@jirikuncar jirikuncar released this 18 Jun 14:21

First published release of ffroute — a Starlette/FastAPI-compatible URL route matcher implemented in Rust with PyO3.

100–200× faster than Starlette's linear regex scan on real-world OpenAPI specs (Stripe, GitHub, Kubernetes), with zero divergences against Starlette's own compile_path oracle.

Highlights

  • ffroute.Router — low-level trie matcher (zero Python deps).
  • ffroute.FFRouter — drop-in starlette.routing.Router subclass.
  • ffroute.speedup(app) — one-liner; recurses into Mount sub-apps by default; dynamic-mixin preserves FastAPI APIRouter hooks (incl. /openapi.json).
  • Wheels published for CPython 3.10–3.14 on Linux (manylinux + musllinux, x86_64 + aarch64), macOS (x86_64 + arm64) and Windows (x86_64).

Notes on v0.1.0

v0.1.0 was tagged but never produced wheels — its CI pipeline hung on a deprecated macOS runner. v0.1.1 ships on the fixed pipeline (macos-14 with cross-compiled Intel wheels; bumped action versions).