imaging_api.config

Attributes

_settings

Classes

Settings

Common settings shared across all environments (development and production).

Functions

get_settings(→ Settings)

Get the application settings.

Module Contents

class imaging_api.config.Settings

Bases: pydantic_settings.BaseSettings

Common settings shared across all environments (development and production).

ENV: Literal['development', 'production'] = 'development'
classmethod coerce_empty_env(v: str) str

Treat empty-string ENV (e.g. from CI environment injection) as ‘development’.

LOG_LEVEL: str = 'INFO'
XNAT_PORT: int
PACS_ID: int = 1
XNAT_URL: str = 'http://xnat-web:8080'
XNAT_SERVICE_USER: str
XNAT_SERVICE_PASSWORD: str
XNAT_DATABASE_URL: str = 'postgresql+asyncpg://xnat:xnat@xnat-db:5432/xnat'
DATA_ACCESS_API_URL: str = 'http://data-access-api:8000'
BASE_IMAGES_DOWNLOAD_DIR: str
AES_KEY_BASE64: str
TRUST_INTERNAL_SERVICE_KEY_HEADER: str = 'X-Trust-Internal-Service-Key'
TRUST_INTERNAL_SERVICE_KEY: str = ''
REIMPORT_STUDIES_ENABLED: bool = True
imaging_api.config._settings
imaging_api.config.get_settings() Settings

Get the application settings.

Returns:

An instance of the Settings class containing configuration values.

Return type:

Settings