Skip to content

src/dazzle_back/runtime/debug_routes.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Debug routes for runtime inspection.

Provides /_dazzle/* endpoints for inspecting running state, entity counts, recent actions, and system health.

These endpoints are always available in development mode (localhost).

Key Exports

  • EntityStats
  • RuntimeStats
  • SystemHealth
  • LivenessResponse
  • ReadinessResponse
  • SpecInfo
  • _DebugDeps
  • create_debug_routes

Dependencies

Imports

  • __future__.annotations
  • logging
  • dataclasses.dataclass
  • datetime.datetime
  • functools.partial
  • typing.Any
  • pydantic.BaseModel
  • dazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLE
  • dazzle_back.runtime._fastapi_compat.APIRouter
  • dazzle_back.runtime.query_builder.quote_identifier
  • dazzle_back.runtime.query_builder.validate_sql_identifier
  • dazzle_back.runtime.repository.DatabaseManager
  • dazzle_back.specs.entity.EntitySpec

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.