twtb.config#
File for the main config.
Module Contents#
Classes#
The main config that holds everything in itself. |
Attributes#
- class Config[source]#
The main config that holds everything in itself.
- classmethod _setup() typing_extensions.Self[source]#
Set up the config.
It is just load config from file, also it is rewrite config with merged data.
- Returns:
Configinstance.
- static _handle_env_variables(cfg: omegaconf.dictconfig.DictConfig, *, prefix: str | None = None) None[source]#
Process all values, and redef them with values from env variables.
- Parameters:
cfg –
Configinstance.prefix – Prefix for env variable. Example
prefix="telegram"andkey="token"will look forTELEGRAM_TOKEN.