trust_api.config
Attributes
Classes
Common settings shared across all environments (development and production). |
Functions
|
Get the application settings. |
Module Contents
- class trust_api.config.Settings
Bases:
pydantic_settings.BaseSettingsCommon 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’.
- model_config
- LOG_LEVEL: str = 'INFO'
- CENTRAL_HUB_API_URL: str
- DATA_ACCESS_API_URL: str
- IMAGING_API_URL: str
- TRUST_API_KEY: str
- TRUST_API_KEY_HEADER: str
- AES_KEY_BASE64: str
- TRUST_INTERNAL_SERVICE_KEY: str = ''
- TRUST_INTERNAL_SERVICE_KEY_HEADER: str = 'X-Trust-Internal-Service-Key'
- TRUST_NAME: str
- POLL_INTERVAL_SECONDS: int = 5
- COHORT_QUERY_TIMEOUT_SECONDS: int = 300
- trust_api.config._settings