Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 485 Bytes

File metadata and controls

23 lines (16 loc) · 485 Bytes

FastAPI Integration

render_stream_async() with FastAPI's StreamingResponse for true streaming HTML delivery on Python 3.14+.

Run

uv add fastapi uvicorn kida-templates
cd examples/fastapi_async && uvicorn app:app --reload

Test

uv run pytest examples/fastapi_async/ -v

What It Shows

  • StreamingResponse with async template rendering
  • Templates with {% async for %} consume async data
  • Full and streaming endpoints produce same content