idmtools.config.idm_config_parser module¶
- 
idmtools.config.idm_config_parser.initialization(error=False, force=False)¶ 
- 
class 
idmtools.config.idm_config_parser.IdmConfigParser(dir_path: str = '.', file_name: str = 'idmtools.ini')¶ Bases:
objectClass that parses an INI configuration file.
- 
classmethod 
retrieve_dict_config_block(field_type, section) → Dict[str, Any]¶ 
- 
classmethod 
retrieve_settings()¶ 
- 
classmethod 
get_section(*args, **kwargs)¶ 
- 
classmethod 
get_option(*args, **kwargs)¶ 
- 
classmethod 
ensure_init(dir_path: str = '.', file_name: str = 'idmtools.ini', error: bool = False, force=False) → None¶ Verify that the INI file loaded and a configparser instance is available.
- Parameters
 dir_path – The directory to search for the INI configuration file.
file_name – The configuration file name to search for.
force – Force reload of everything
error – Throws error if idmtools.ini cannot be found
- Returns
 None
- Raises
 ValueError – If the config file is found but cannot be parsed
- 
classmethod 
get_config_path(*args, **kwargs)¶ 
- 
classmethod 
display_config_path(*args, **kwargs)¶ 
- 
classmethod 
view_config_file(*args, **kwargs)¶ 
- 
classmethod 
display_config_block_details(block)¶ Display the values of a config block
- Parameters
 block – Block to print
- Returns
 None
- 
classmethod 
has_section(*args, **kwargs)¶ 
- 
classmethod 
has_option()¶ 
- 
classmethod 
found_ini() → bool¶ Did we find the config?
- Returns
 True if did, False Otherwise
- 
classmethod 
clear_instance() → None¶ Uninitialize and clean the
IdmConfigParserinstance.- Returns
 None
- 
classmethod