selinon.storage module

Storage configuration and abstraction from YAML config file.

class selinon.storage.Storage(name, import_path, configuration, cache_config, class_name=None)[source]

Bases: object

A storage representation.

static from_dict(dict_)[source]

Construct storage instance from a dict.

Parameters:dict – dict that should be used to instantiate Storage
Return type:Storage
register_task(task)[source]

Register a new that uses this storage.

Parameters:task – task to be registered
var_name

Return variable name which should be used for this storage reference in the generated Python code.

return: name of storage variable that will be used in config.py file