marmot.utils.mconfig.parser#

parser(top_level: str, second_level: Optional[str] = None) Union[dict, str, int, bool][source]#

Pull requested value from config.yml file.

Parameters
  • top_level (str) – Top level of config dictionary, will return specified level and any sublevel.

  • second_level (str, optional) – Second level of config dictionary under top_level, will return a single value. Defaults to None.

Returns

Returns the requested level or value from the config file. Return type varies based on levesl accessed.

Return type

Union[dict, str, int, bool]