create_app

Defined in dccd.interfaces.api.app

create_app(config_path=None, config=None, scheduler=None)[source]

Create and return the FastAPI application.

Parameters:
config_pathstr or Path or None

Path to config.yml. Resolved via XDG fallback when None.

configAppConfig or None

Pre-loaded config. Takes precedence over config_path.

schedulerScheduler or None

Pass a running Scheduler from dccd start so the UI controls the live daemon’s jobs and streams. When None, a standalone (non-started) scheduler is created.