backend.app_config
Application configuration loader.
Reads and validates appConfig.json from the project root on import.
If the file is missing, malformed or incomplete the application exits
immediately with a descriptive error message.
- Required top-level keys in
appConfig.json: genres,gigTypes,songStatuses,gigStatuses,tonekeys,rehearsalSongStatuses,setlist_timing
- exception backend.app_config.ConfigValidationError[Quellcode]
Bases:
ValueErrorRaised when admin-provided soft config payload is invalid.
- backend.app_config.load_config()[Quellcode]
Load appConfig.json into the module-global config dict.
- backend.app_config.get_config()[Quellcode]
Return a deep copy of the full application configuration.
- backend.app_config.get_soft_config()[Quellcode]
Return only admin-editable soft config keys.
- backend.app_config.get_soft_config_updated_at()[Quellcode]
Return the last modification time of appConfig.json in ISO8601.
- backend.app_config.update_soft_config(payload)[Quellcode]
Validate, persist and reload the editable soft config keys.
- backend.app_config.get_frontend_config()[Quellcode]
Return only the configuration keys relevant to the frontend.
- Rückgabe:
A dictionary containing
genres,gigTypes,songStatuses,gigStatuses,tonekeysandrehearsalSongStatuses.- Rückgabetyp: