Skip to content

src/dazzle_back/runtime/app_factory.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

App factory functions extracted from server.py.

Convenience functions for creating and running Dazzle backend applications, including the production ASGI factory for deployment.

Key Exports

  • create_app
  • run_app
  • build_entity_list_projections
  • build_entity_search_fields
  • build_entity_filter_fields
  • build_fragment_sources
  • build_server_config
  • assemble_post_build_routes
  • create_app_factory
  • serve_bundled_css

Dependencies

Imports

  • __future__.annotations
  • logging
  • os
  • pathlib.Path
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle.core.ir.AppSpec
  • dazzle.core.manifest.resolve_api_url
  • fastapi.FastAPI
  • dazzle.core.ir.EntitySpec
  • dazzle.core.ir.SurfaceSpec
  • dazzle.core.ir.ViewSpec
  • dazzle_back.runtime.server.DazzleBackendApp
  • dazzle_back.runtime.server.ServerConfig
  • dazzle_back.runtime.server.DazzleBackendApp
  • dazzle_back.runtime.server.ServerConfig
  • dazzle_back.runtime.server.DazzleBackendApp
  • dazzle.core.manifest.resolve_database_url
  • dazzle_ui.converters.workspace_converter.compute_persona_default_routes
  • uvicorn

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.