bridge.config module#
Runtime configuration via pydantic-settings. Centralizes endpoints and tokens for external services, plus logging level and simple token validation helpers.
- class bridge.config.Settings(_case_sensitive=None, _nested_model_default_partial_update=None, _env_prefix=None, _env_file=PosixPath('.'), _env_file_encoding=None, _env_ignore_empty=None, _env_nested_delimiter=None, _env_nested_max_split=None, _env_parse_none_str=None, _env_parse_enums=None, _cli_prog_name=None, _cli_parse_args=None, _cli_settings_source=None, _cli_parse_none_str=None, _cli_hide_none_type=None, _cli_avoid_json=None, _cli_enforce_required=None, _cli_use_class_docs_for_groups=None, _cli_exit_on_error=None, _cli_prefix=None, _cli_flag_prefix_char=None, _cli_implicit_flags=None, _cli_ignore_unknown_args=None, _cli_kebab_case=None, _cli_shortcuts=None, _secrets_dir=None, **values)[source]#
Bases:
BaseSettingsGlobal configuration for bridge.
- Parameters:
_case_sensitive (bool | None)
_nested_model_default_partial_update (bool | None)
_env_prefix (str | None)
_env_file (DotenvType | None)
_env_file_encoding (str | None)
_env_ignore_empty (bool | None)
_env_nested_delimiter (str | None)
_env_nested_max_split (int | None)
_env_parse_none_str (str | None)
_env_parse_enums (bool | None)
_cli_prog_name (str | None)
_cli_parse_args (bool | list[str] | tuple[str, ...] | None)
_cli_settings_source (CliSettingsSource[Any] | None)
_cli_parse_none_str (str | None)
_cli_hide_none_type (bool | None)
_cli_avoid_json (bool | None)
_cli_enforce_required (bool | None)
_cli_use_class_docs_for_groups (bool | None)
_cli_exit_on_error (bool | None)
_cli_prefix (str | None)
_cli_flag_prefix_char (str | None)
_cli_implicit_flags (bool | None)
_cli_ignore_unknown_args (bool | None)
_cli_kebab_case (bool | None)
_cli_shortcuts (Mapping[str, str | list[str]] | None)
_secrets_dir (PathType | None)
github_token (str | None)
github_api_url (HttpUrl)
biotools_url (HttpUrl)
biotools_api_url (HttpUrl)
huggingface_token (str | None)
huggingface_api_url (HttpUrl)
europe_pmc_api_url (HttpUrl)
spdx_license_base_url (HttpUrl)
log_level (str)
- property biotools_api_base: str#
Base URL for bio.tools API as a string
-
biotools_api_url:
HttpUrl#
-
biotools_url:
HttpUrl#
-
europe_pmc_api_url:
HttpUrl#
- property europepmc_api_base: str#
Base URL for Europe PMC API as a string
- property github_api_base: str#
Base URL for GitHub API as a string
-
github_api_url:
HttpUrl#
-
github_token:
str|None#
- property huggingface_api_base: str#
Base URL for Hugging Face API as a string
-
huggingface_api_url:
HttpUrl#
-
huggingface_token:
str|None#
-
log_level:
str#
- property spdx_license_base: str#
Base URL for SPDX license JSON as a string
-
spdx_license_base_url:
HttpUrl#