app.config package

Submodules

app.config.config module

class app.config.config.Settings(_case_sensitive: bool | None = None, _env_prefix: str | None = None, _env_file: DotenvType | None = PosixPath('.'), _env_file_encoding: str | None = None, _env_nested_delimiter: str | None = None, _secrets_dir: str | Path | None = None, *, app_name: str = 'TEST Auth0 API', version: str = '0.0.1', ENVIRONMENT: str = 'local-dev', LOG_NAME: str = 'asapi-backend-log', AUTH0_API_AUDIENCE: str, AUTH0_ALGORITHMS: str, DB_URL: str, DB_NAME: str, DB_USERNAME: str, DB_ADDITIONAL_PARAMETERS: str, GCS_FILEUPLOAD_BUCKET: str, GCS_FILEUPLOAD_BUCKET_PREFIX: str, GCP_PROJECT_NAME: str, AUTOSCORING_URL: str, AUTOSCORING_TOKEN: str, EDFVALIDATOR_URL: str, CLOUD_TASK_AUTOSCORING_ID: str, CLOUD_TASK_EDFVALIDATOR_ID: str, SERVICE_ACCOUNT_EMAIL: str, USER_X509_URL: str, USER_ISSUER: str, M2M_X509_URL: str, M2M_ISSUER: str, GOOGLE_IDENTITY_REFRESH_TOKEN_URL: str, GOOGLE_IDENTITY_API_KEY: str, CORS_ALLOWED_ORIGINS: Set[str], REDIS_HOST: str, REDIS_PORT: int, REDIS_AUTH_STRING: str, WEB_REPORTING_V2_URL: str, GOOGLE_INTERNAL_METADATA_URL: str, MAX_PER_PAGE: int = 1000)

Bases: BaseSettings

AUTH0_ALGORITHMS: str
AUTH0_API_AUDIENCE: str
AUTOSCORING_TOKEN: str
AUTOSCORING_URL: str
CLOUD_TASK_AUTOSCORING_ID: str
CLOUD_TASK_EDFVALIDATOR_ID: str
CORS_ALLOWED_ORIGINS: Set[str]
DB_ADDITIONAL_PARAMETERS: str
DB_NAME: str
DB_URL: str
DB_USERNAME: str
EDFVALIDATOR_URL: str
ENVIRONMENT: str
GCP_PROJECT_NAME: str
GCS_FILEUPLOAD_BUCKET: str
GCS_FILEUPLOAD_BUCKET_PREFIX: str
GOOGLE_IDENTITY_API_KEY: str
GOOGLE_IDENTITY_REFRESH_TOKEN_URL: str
GOOGLE_INTERNAL_METADATA_URL: str
LOG_NAME: str
M2M_ISSUER: str
M2M_X509_URL: str
MAX_PER_PAGE: int
REDIS_AUTH_STRING: str
REDIS_HOST: str
REDIS_PORT: int
SERVICE_ACCOUNT_EMAIL: str
USER_ISSUER: str
USER_X509_URL: str
WEB_REPORTING_V2_URL: str
app_name: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[SettingsConfigDict] = {'arbitrary_types_allowed': True, 'case_sensitive': False, 'env_file': '.env', 'env_file_encoding': None, 'env_nested_delimiter': None, 'env_prefix': '', 'extra': 'forbid', 'protected_namespaces': ('model_', 'settings_'), 'secrets_dir': None, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'AUTH0_ALGORITHMS': FieldInfo(annotation=str, required=True), 'AUTH0_API_AUDIENCE': FieldInfo(annotation=str, required=True), 'AUTOSCORING_TOKEN': FieldInfo(annotation=str, required=True), 'AUTOSCORING_URL': FieldInfo(annotation=str, required=True), 'CLOUD_TASK_AUTOSCORING_ID': FieldInfo(annotation=str, required=True), 'CLOUD_TASK_EDFVALIDATOR_ID': FieldInfo(annotation=str, required=True), 'CORS_ALLOWED_ORIGINS': FieldInfo(annotation=Set[str], required=True), 'DB_ADDITIONAL_PARAMETERS': FieldInfo(annotation=str, required=True), 'DB_NAME': FieldInfo(annotation=str, required=True), 'DB_URL': FieldInfo(annotation=str, required=True), 'DB_USERNAME': FieldInfo(annotation=str, required=True), 'EDFVALIDATOR_URL': FieldInfo(annotation=str, required=True), 'ENVIRONMENT': FieldInfo(annotation=str, required=False, default='local-dev'), 'GCP_PROJECT_NAME': FieldInfo(annotation=str, required=True), 'GCS_FILEUPLOAD_BUCKET': FieldInfo(annotation=str, required=True), 'GCS_FILEUPLOAD_BUCKET_PREFIX': FieldInfo(annotation=str, required=True), 'GOOGLE_IDENTITY_API_KEY': FieldInfo(annotation=str, required=True), 'GOOGLE_IDENTITY_REFRESH_TOKEN_URL': FieldInfo(annotation=str, required=True), 'GOOGLE_INTERNAL_METADATA_URL': FieldInfo(annotation=str, required=True), 'LOG_NAME': FieldInfo(annotation=str, required=False, default='asapi-backend-log'), 'M2M_ISSUER': FieldInfo(annotation=str, required=True), 'M2M_X509_URL': FieldInfo(annotation=str, required=True), 'MAX_PER_PAGE': FieldInfo(annotation=int, required=False, default=1000), 'REDIS_AUTH_STRING': FieldInfo(annotation=str, required=True), 'REDIS_HOST': FieldInfo(annotation=str, required=True), 'REDIS_PORT': FieldInfo(annotation=int, required=True), 'SERVICE_ACCOUNT_EMAIL': FieldInfo(annotation=str, required=True), 'USER_ISSUER': FieldInfo(annotation=str, required=True), 'USER_X509_URL': FieldInfo(annotation=str, required=True), 'WEB_REPORTING_V2_URL': FieldInfo(annotation=str, required=True), 'app_name': FieldInfo(annotation=str, required=False, default='TEST Auth0 API'), 'version': FieldInfo(annotation=str, required=False, default='0.0.1')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

version: str
app.config.config.get_settings()

Module contents