main
Application factory¶
This module sets up the FastAPI application that serves the Fractal Server.
check_settings()
¶
Check and register the settings
Verify the consistency of the settings, in particular that required variables are set.
Raises:
Type | Description |
---|---|
ValidationError
|
If the configuration is invalid. |
Source code in fractal_server/main.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
collect_routers(app)
¶
Register the routers to the application
Parameters:
Name | Type | Description | Default |
---|---|---|---|
app |
FastAPI
|
The application to register the routers to. |
required |
Source code in fractal_server/main.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
start_application()
¶
Create the application, initialise it and collect all available routers.
Returns:
Name | Type | Description |
---|---|---|
app |
FastAPI
|
The fully initialised application. |
Source code in fractal_server/main.py
148 149 150 151 152 153 154 155 156 157 158 |
|