Larz โ€บ Async Python web framework

Async, without giving up zero dependencies

Larz's app object is dual-protocol โ€” it runs under WSGI and ASGI โ€” so you can write async def handlers and WebSockets, and run them with nothing extra installed.

pip install larz
@app.get("/feed")
async def feed(req):
    data = await fetch_async()      # await anything
    return {"items": data}

app.run_async()                     # built-in asyncio server, no uvicorn needed

QuickstartGitHubDocs

How it works

Honest note: Larz is a young framework. For maximum async throughput and a vast ecosystem, FastAPI is more mature. Choose Larz for zero dependencies, built-in monetization, and self-hosting.

FAQ

Do I need uvicorn?

No โ€” Larz ships a built-in zero-dependency asyncio server (app.run_async) for HTTP and WebSockets. You can still use uvicorn/hypercorn since the app is a standard ASGI callable.

Can I mix async and sync handlers?

Yes. async def handlers are awaited and sync handlers run directly, so you can adopt async gradually.