class ConfigLoader:
Reads all config files in a folder Behaves like a dictionary of all config files
| Method | __contains__ |
Same as a dictionary. :param item: config key :type item: str :return: True if item is in self.loaded_conf |
| Method | __getitem__ |
Returns a yaml config object if in self.loaded_conf :param item: config key :type item: str :raise KeyError: if item is not in self.loaded_conf :return: config value |
| Method | __init__ |
Defines the config folder and loads all configs :param config_folder: path to config file :type config_folder: (str | list[str]) :param extensions: file extensions to load :type extensions: list[str] :raise TypeError: if config_folder is not a string or a list of strings... |
| Method | __repr__ |
Returns config as string :return: the dict of configs and their values :rtype: str |
| Method | add |
Add a Folder to the list of configs :param folder: path to folder :type folder: str :return: None |
| Method | load |
Loads a config file :param filepath: path to config file :type filepath: str :return: None |
| Method | load |
Loads all configs in the config folder :param folder: path to folder :type folder: str :return: None |
| Method | reload |
Reloads all configs :return: None |
| Instance Variable | config |
Undocumented |
| Instance Variable | extensions |
Undocumented |
| Instance Variable | loaded |
Undocumented |
Same as a dictionary. :param item: config key :type item: str :return: True if item is in self.loaded_conf
Returns a yaml config object if in self.loaded_conf :param item: config key :type item: str :raise KeyError: if item is not in self.loaded_conf :return: config value
Defines the config folder and loads all configs :param config_folder: path to config file :type config_folder: (str | list[str]) :param extensions: file extensions to load :type extensions: list[str] :raise TypeError: if config_folder is not a string or a list of strings
Returns config as string :return: the dict of configs and their values :rtype: str
Add a Folder to the list of configs :param folder: path to folder :type folder: str :return: None
Loads a config file :param filepath: path to config file :type filepath: str :return: None