peal.web.app.create_app¶
- peal.web.app.create_app(jobs_root=None, start_worker=None)[source]¶
Build the FastAPI application of the web demo.
Creates the
JobStoreunderjobs_root(plus an_uploadssubfolder for not-yet-submitted uploads), optionally starts the backgroundWorkerthread that executes queued jobs, registers all routes listed in the module docstring and mounts/static.- Parameters:
- Returns:
The application;
app.statecarriesstore,uploads_rootandworker(Nonewhen no worker was started).- Return type:
fastapi.FastAPI