Lightning-fast ASGI web framework with FastAPI-compatible syntax. Built on Starlette, delivering exceptional performance.
FastAPI showed the world that Python web frameworks could be developer-friendly. TurboAPI asked: what if they were also blindingly fast? By replacing the validation layer with a Rust-compiled engine and optimizing the ASGI pipeline, TurboAPI delivers 2.8x more requests per second with the exact same syntax developers already know.
from turboapi import TurboAPI
app = TurboAPI()
@app.get("/users/{user_id}")
async def get_user(user_id: int):
return {"id": user_id, "name": "Rach"}
@app.post("/users")
async def create_user(name: str, email: str):
user = await db.create(name=name, email=email)
return {"id": user.id, "created": True}