Skip to content

Setting

load_config(file_name, config='default')

Loads config file (TOML file).

Parameters:

Name Type Description Default
file_name Union[str, Path, PathLike, PurePath]

Path to config file.

required
config str

Loading enviroment name. Defaults to 'default'.

'default'

Raises:

Type Description
TypeError

If 'config' enviroment is not defined in config file.

Returns:

Name Type Description
dict dict

{'token': 'xxxx', 'url': 'xxxx'}