silverback.settings
The silverback.settings
module contains configuration settings to be used whe executing a
Silverback bot, including configuring the broker system, RPC connection and signer.
- class silverback.settings.Settings(_case_sensitive: bool | None = None, _nested_model_default_partial_update: bool | None = None, _env_prefix: str | None = None, _env_file: DotenvType | None = PosixPath('.'), _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_nested_max_split: int | 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, ...] | None = None, _cli_settings_source: 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_exit_on_error: bool | None = None, _cli_prefix: str | None = None, _cli_flag_prefix_char: str | None = None, _cli_implicit_flags: bool | None = None, _cli_ignore_unknown_args: bool | None = None, _cli_kebab_case: bool | None = None, _secrets_dir: PathType | None = None, *, BOT_NAME: str = 'bot', FORK_MODE: bool = False, BROKER_CLASS: str = 'taskiq:InMemoryBroker', BROKER_URI: str = '', BROKER_KWARGS: dict[str, Any] = {}, ENABLE_METRICS: bool = False, RESULT_BACKEND_CLASS: str = 'taskiq.brokers.inmemory_broker:InmemoryResultBackend', RESULT_BACKEND_URI: str = '', RESULT_BACKEND_KWARGS: dict[str, Any] = {}, NETWORK_CHOICE: str = '', SIGNER_ALIAS: str = '', NEW_BLOCK_TIMEOUT: int | None = None, RECORDER_CLASS: str | None = None)
Bases:
BaseSettings
,ManagerAccessMixin
Settings for the Silverback bot.
Can override these settings from a default state, typically for advanced testing or deployment purposes. Defaults to a working in-memory broker.