$ pip install smpl_configAvailable methods of simpleconfig.SimpleConfig:
SimpleConfig.parseSimpleConfig.getSimpleConfig.intSimpleConfig.boolSimpleConfig.floatSimpleConfig.generate_iter
File parsing function
Arguments:
path- path to config file
Returns:
NoneType
Function to get the value of a variable
Arguments:
item- variable name to get the value
Returns:
str- If successful, a string will be received
Exceptions:
KeyError- If variable is not found
Function to get the integer value of a variable
Arguments:
item- variable name to get the value
Returns:
int- If successful, a integer will be receivedNoneType- If the value cannot be an integer, a NoneType will be received
Exceptions:
KeyError- If variable is not found
Function to get the boolean value of a variable
Arguments:
item- variable name to get the value
Returns:
bool- If successful, a booleaan will be receivedNoneType- If the value cannot be an boolean (is this possible?), a NoneType will be received
Exceptions:
KeyError- If variable is not found
Function to get the float value of a variable
Arguments:
item- variable name to get the value
Returns:
float- If successful, a float will be receivedNoneType- If the value cannot be an float, a NoneType will be received
Exceptions:
KeyError- If variable is not found
