bovid.config.config module

class bovid.config.config.BovidServerAppConfig

Bases: ServerAppConfig, Model

Application configuration of the bovid server.

Encapsulates all of the configuration which was collected from the environment.

base: BaseConfig
server: CommonServerConfig
app_db: DBClientConfig
app_object_store: ObjectStoreClientConfig
testing: TestingConfig
__init__(base, server, app_db, app_object_store, testing)

Method generated by attrs for class BovidServerAppConfig.

Parameters:
  • base (BaseConfig)

  • server (CommonServerConfig)

  • app_db (DBClientConfig)

  • app_object_store (ObjectStoreClientConfig)

  • testing (TestingConfig)

Return type:

None

bovid.config.config.BOVID_SERVER_APP_CONFIG_SCHEMA: Final[ApplicationConfigSchema[BovidServerAppConfig]] = ApplicationConfigSchema(app_config_schema=<class 'bovid.config.config.BovidServerAppConfig'>, defaults={'base': <class 'ibeks.server.base.schema.base.BaseDefaults'>, 'server': <class 'ibeks.server.common.schema.server.CommonServerDefaults'>, 'app_db': <class 'ibeks.server.db.schema.db.DBClientDefaults'>, 'app_object_store': <class 'ibeks.server.object_store.schema.object.ObjectStoreClientDefaults'>, 'testing': <class 'bovid.config.schemas.testing.TestingDefaults'>}, schemas_env_var_specs={'base': {'smoke': EnvVarSpec(key='SMOKE', type=<class 'bool'>, required=False), 'debug': EnvVarSpec(key='DEBUG', type=<class 'bool'>, required=False)}, 'server': {'allow_origins': EnvVarSpec(key='ALLOW_ORIGINS', type=<class 'str'>, required=False), 'allow_credentials': EnvVarSpec(key='ALLOW_CREDENTIALS', type=<class 'bool'>, required=False), 'auth_enabled': EnvVarSpec(key='AUTH_ENABLED', type=<class 'bool'>, required=False), 'auth_endpoint': EnvVarSpec(key='AUTH_ENDPOINT', type=<class 'str'>, required=False)}, 'app_db': {'host': EnvVarSpec(key='APP_DB_HOST', type=<class 'str'>, required=False), 'port': EnvVarSpec(key='APP_DB_PORT', type=<class 'int'>, required=False), 'user': EnvVarSpec(key='APP_DB_USER', type=<class 'str'>, required=False), 'password': EnvVarSpec(key='APP_DB_PASSWORD', type=<class 'str'>, required=False), 'db_name': EnvVarSpec(key='APP_DB_NAME', type=<class 'str'>, required=False)}, 'app_object_store': {'host': EnvVarSpec(key='APP_OBJECT_STORE_HOST', type=<class 'str'>, required=False), 'port': EnvVarSpec(key='APP_OBJECT_STORE_PORT', type=<class 'int'>, required=False), 'user': EnvVarSpec(key='APP_OBJECT_STORE_USER', type=<class 'str'>, required=False), 'password': EnvVarSpec(key='APP_OBJECT_STORE_PASSWORD', type=<class 'str'>, required=False), 'custom_field_data_bucket': EnvVarSpec(key='APP_OBJECT_STORE_CUSTOM_FIELD_DATA_BUCKET', type=<class 'str'>, required=False), 'backend': EnvVarSpec(key='APP_OBJECT_STORE_BACKEND', type=<class 'str'>, required=False), 'tenant_name': EnvVarSpec(key='APP_OBJECT_STORE_TENANT_NAME', type=<class 'str'>, required=False)}, 'testing': {'testing_unit': EnvVarSpec(key='TESTING_UNIT', type=<class 'str'>, required=False)}})

Schema for the bovid server application.