sf.configuration.get_api_config

get_api_config(loaded_config, filepath)[source]

Gets the API section from the loaded configuration.

Parameters
  • loaded_config (dict) – the configuration that was loaded from the TOML config file

  • filepath (str) – path to the configuration file

Returns

the api section of the configuration

Return type

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

Raises

ConfigurationError – if the api section was not defined in the configuration