src/dazzle_back/runtime/server.py¶
Generated: 2026-03-30T04:38:48.190148+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Runtime server - creates and runs a FastAPI application from AppSpec.
This module provides the main entry point for running a Dazzle backend application.
Key Exports¶
ServerConfigDazzleBackendAppbuildappmodelsservicesget_serviceauth_storeauth_middlewareauth_enabledfile_servicefiles_enabledtest_mode_enableddev_mode_enabledrepositoriesservice_loaderchannel_managerchannels_enabledprocess_managerprocess_adapter
Dependencies¶
Imports¶
loggingdataclasses.dataclassdataclasses.fielddatetime.datetimepathlib.Pathtyping.TYPE_CHECKINGtyping.Anypydantic.BaseModeldazzle.core.ir.AppSpecdazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLEdazzle_back.runtime._fastapi_compat.FastAPIdazzle_back.runtime._fastapi_compat.FastAPIdazzle_back.runtime.auth.AuthMiddlewaredazzle_back.runtime.auth.AuthStoredazzle_back.runtime.file_routes.create_file_routesdazzle_back.runtime.file_routes.create_static_file_routesdazzle_back.runtime.file_storage.FileServicedazzle_back.runtime.integration_manager.IntegrationManagerdazzle_back.runtime.integration_manager._convert_channelsdazzle_back.runtime.migrations.MigrationPlan
Event Interactions¶
None detected.
Invariants and Assumptions¶
- Assert: self._app is not None
- Assert: self._subsystem_ctx is not None
-
GZip compression (v0.33.0) — must be added before other middleware¶
- Assert: database_url required for tenant isolation
- Assert: self._database_url is not None
Tests¶
tests/unit/test_qa_server.pytests/unit/test_build_server_config.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.