-
Configuration Management
- Found in the package config-mgmt
- Defines a Configurator class
- Loades a configuration file from path (currently - json and .py formats supported)
- New config format supported using config_loader_registry.register_loader()
- Defines a ConfigurationException class to represent any config related error condition
-
Simple LRU Caching
- Defined in the module simplecache in libs package
- Defines a class SimpleCache for implementing the LRU cache
- A limited sized cache (default 1000 entries), size is specified during instantiating the cache
- When number of entries exceeds cache size old entries are automatically removed from cache
-
Dynamic code loading utility
- Defined in the module loader_utils in libs package
- Function import_into_namespace() imports a python module into target namespace
- If no target namespace provided it defaults to callers global namespace
- Function exec_and_get() executes python code snippet in a string and returns the variable value
- Function lookup_function() looks up for a function name in the namespace and returns the function object
For usage details please go through respective the code files, all the name are pretty self explanatory and all the important code segments are appropriately commented.