Skip to content

src/dazzle_back/runtime/route_overrides.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Route override discovery for project-level custom handlers (v0.29.0).

Scans project routes/ for Python files with declaration headers and loads custom FastAPI route handlers that replace generated routes.

Route override files use declaration headers::

# dazzle:route-override GET /app/task...

Key Exports

  • RouteOverrideDescriptor
  • discover_route_overrides
  • build_override_router

Dependencies

Imports

  • importlib.util
  • logging
  • re
  • sys
  • collections.abc.Callable
  • dataclasses.dataclass
  • pathlib.Path
  • typing.Any
  • fastapi.APIRouter

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_route_overrides.py
  • 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

Notes

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