Setting¶
load_config(file_name, config='default')
¶
Loads config file (TOML file).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name | Union[str, pathlib.Path, os.PathLike, pathlib.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'} |
Last update: 2023年3月17日