Skip to content

src/dazzle_back/runtime/control_plane.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Dazzle Control Plane API.

Provides /dazzle/dev/* endpoints for developer-mode operations. These endpoints handle data management and frontend logging.

These endpoints are only available in dev/native mode or when test_mode is enabled.

Key Exports

  • FrontendLogRequest
  • _ControlPlaneDeps
  • create_control_plane_routes

Dependencies

Imports

  • logging
  • re
  • dataclasses.dataclass
  • functools.partial
  • typing.Any
  • pydantic.BaseModel
  • dazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLE
  • dazzle_back.runtime._fastapi_compat.APIRouter
  • dazzle_back.runtime.repository.DatabaseManager
  • dazzle_back.runtime.repository.Repository
  • dazzle_back.specs.entity.EntitySpec
  • dazzle_back.runtime.logging.log_frontend_entry
  • dazzle_back.runtime.logging.get_log_file
  • dazzle_back.runtime.logging.get_recent_logs
  • dazzle_back.runtime.logging.get_error_summary
  • dazzle_back.runtime.logging.clear_logs

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Unsafe table name: {table_name!r}

Tests

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