Drop-in replacement · Zig-native validation · Zero-copy responses · Free-threading · dhi models
- from fastapi import FastAPI + from turboapi import TurboAPI # Everything else stays exactly the same app = TurboAPI() @app.get("/items/{item_id}") async def read_item(item_id: int): return {"item_id": item_id}
8-thread pool with keep-alive. Zero-copy response pipeline. Zig-side JSON parsing — no json.loads overhead.
Same route decorators, dependency injection, Pydantic models, and OpenAPI docs. No rewrite needed.
Pydantic-style constraints compiled to native Zig. Validation happens before Python ever sees the data.
Python 3.14t free-threaded support. Pair with the Zig HTTP core to remove the GIL from your hot path entirely.
OAuth2, Bearer tokens, API keys — the same security primitives from FastAPI, fully supported.
Mount handlers written in C or Zig directly. Zero Python overhead for your absolute hottest endpoints.
Alpha — works and tested. 230+ tests passing. API surface may still change.