Skip to content

src/dazzle_back/runtime/_fastapi_compat.py

Generated: 2026-03-30T04:38:46.664214+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

FastAPI optional-import compatibility shim.

All FastAPI symbols used across dazzle_back.runtime are imported here in a single try/except block. Every other module imports from here instead of repeating the guard locally.

When FastAPI is not installed every symbol is set to None so that ``...

Key Exports

No public exports detected.

Dependencies

Imports

  • typing.TYPE_CHECKING
  • fastapi.APIRouter
  • fastapi.Cookie
  • fastapi.Depends
  • fastapi.HTTPException
  • fastapi.Query
  • fastapi.Request
  • fastapi.Response
  • fastapi.FastAPI
  • fastapi.Request
  • fastapi.middleware.cors.CORSMiddleware
  • fastapi.responses.HTMLResponse
  • fastapi.responses.JSONResponse
  • fastapi.responses.RedirectResponse
  • starlette.responses.Response
  • fastapi.APIRouter
  • fastapi.Cookie
  • fastapi.Depends
  • fastapi.HTTPException
  • fastapi.Query

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.