imaging_api.config ================== .. py:module:: imaging_api.config Attributes ---------- .. autoapisummary:: imaging_api.config._settings Classes ------- .. autoapisummary:: imaging_api.config.Settings Functions --------- .. autoapisummary:: imaging_api.config.get_settings Module Contents --------------- .. py:class:: Settings Bases: :py:obj:`pydantic_settings.BaseSettings` Common settings shared across all environments (development and production). .. py:attribute:: ENV :type: Literal['development', 'production'] :value: 'development' .. py:method:: coerce_empty_env(v: str) -> str :classmethod: Treat empty-string ENV (e.g. from CI environment injection) as 'development'. .. py:attribute:: LOG_LEVEL :type: str :value: 'INFO' .. py:attribute:: XNAT_PORT :type: int .. py:attribute:: PACS_ID :type: int :value: 1 .. py:attribute:: XNAT_URL :type: str :value: 'http://xnat-web:8080' .. py:attribute:: XNAT_SERVICE_USER :type: str .. py:attribute:: XNAT_SERVICE_PASSWORD :type: str .. py:attribute:: XNAT_DATABASE_URL :type: str :value: 'postgresql+asyncpg://xnat:xnat@xnat-db:5432/xnat' .. py:attribute:: DATA_ACCESS_API_URL :type: str :value: 'http://data-access-api:8000' .. py:attribute:: BASE_IMAGES_DOWNLOAD_DIR :type: str .. py:attribute:: AES_KEY_BASE64 :type: str .. py:attribute:: TRUST_INTERNAL_SERVICE_KEY_HEADER :type: str :value: 'X-Trust-Internal-Service-Key' .. py:attribute:: TRUST_INTERNAL_SERVICE_KEY :type: str :value: '' .. py:attribute:: REIMPORT_STUDIES_ENABLED :type: bool :value: True .. py:data:: _settings .. py:function:: get_settings() -> Settings Get the application settings. :returns: An instance of the Settings class containing configuration values. :rtype: Settings