mainframe.constants

Attributes

Classes

EnvConfig

Our default configuration for models that should load from .env files.

Mainframe

Our default configuration for models that should load from .env files.

_Sentry

Our default configuration for models that should load from .env files.

Module Contents

mainframe.constants.GIT_SHA[source]
class mainframe.constants.EnvConfig(_case_sensitive: bool | None = None, _env_prefix: str | None = None, _env_file: pydantic_settings.sources.DotenvType | None = ENV_FILE_SENTINEL, _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, Ellipsis] | None = None, _cli_settings_source: pydantic_settings.sources.CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_prefix: str | None = None, _secrets_dir: str | pathlib.Path | None = None, **values: Any)[source]

Bases: pydantic_settings.BaseSettings

Our default configuration for models that should load from .env files.

model_config[source]

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

class mainframe.constants.Mainframe(_case_sensitive: bool | None = None, _env_prefix: str | None = None, _env_file: pydantic_settings.sources.DotenvType | None = ENV_FILE_SENTINEL, _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, Ellipsis] | None = None, _cli_settings_source: pydantic_settings.sources.CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_prefix: str | None = None, _secrets_dir: str | pathlib.Path | None = None, **values: Any)[source]

Bases: EnvConfig

Our default configuration for models that should load from .env files.

client_origin_url: str = ''[source]
auth0_domain: str = ''[source]
auth0_audience: str = ''[source]
reporter_url: str = ''[source]
db_url: str = 'postgresql+psycopg2://postgres:postgres@localhost:5432/dragonfly'[source]
db_connection_pool_max_size: int = 15[source]

The max number of concurrent connections

db_connection_pool_persistent_size: int = 5[source]

The number of concurrent connections to maintain in the connection pool

dragonfly_github_token: str[source]
job_timeout: int[source]
log_config_file: str = 'logging/development.toml'[source]
mainframe.constants.mainframe_settings[source]
class mainframe.constants._Sentry(_case_sensitive: bool | None = None, _env_prefix: str | None = None, _env_file: pydantic_settings.sources.DotenvType | None = ENV_FILE_SENTINEL, _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, Ellipsis] | None = None, _cli_settings_source: pydantic_settings.sources.CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_prefix: str | None = None, _secrets_dir: str | pathlib.Path | None = None, **values: Any)[source]

Bases: EnvConfig

Our default configuration for models that should load from .env files.

dsn: str = ''[source]
environment: str = 'production'[source]
release_prefix: str = 'dragonfly-mainframe'[source]
mainframe.constants.Sentry[source]