Skip to content

src/dazzle_back/runtime/services.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Runtime service container — replaces module-level singletons.

Attached to app.state.services at startup. Each app instance gets its own services, enabling multi-tenant isolation and clean test fixtures.

Key Exports

  • RuntimeServices
  • get_services

Dependencies

Imports

  • __future__.annotations
  • dataclasses.dataclass
  • dataclasses.field
  • typing.Any
  • fastapi.Request
  • dazzle_back.runtime.event_bus.EntityEventBus
  • dazzle_back.runtime.presence_tracker.PresenceTracker

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

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

Notes

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