utils
Module¶
Factory
|
Registers a class with the class factory dictionary. |
|
Removes a class from the class factory dictionary thus making it unavaialble for dynamic instantiation. |
|
Retrieves a class object from the class factory by name. |
Convenience function to inspect the dictionary of registered classes. |
Check Utilities
|
Checks if a key is in a dictionary dict_info and raises a customized exception message with better context. |
|
Checks if a value is of a certain type and raises a customized exception message with better context. |
|
Checks if a value is in a list of allowed options. |
YAML Utilities
|
Loads a YAML file safely and returns a dictionary with the configuration data. |