sf.configuration.load_config

load_config(filename='config.toml', **kwargs)[source]

Load configuration from keyword arguments, configuration file or environment variables.

Note

The configuration dictionary will be created based on the following (order defines the importance, going from most important to least important):

  1. keyword arguments passed to load_config

  2. data contained in environmental variables (if any)

  3. data contained in a configuration file (if exists)

Keyword Arguments

filename (str) – the name of the configuration file to look for. Additional configuration options are detailed in sf.configuration

Returns

the configuration

Return type

dict[str, dict[str, Union[str, bool, int]]]