redvypr.configdata

Functions

apply_config_to_dict(userconfig, configdict)

Applies a user configuration to a dictionary created from a template :param userconfig: :param configdict:

apply_config_to_dict_static(userconfig, ...)

Applies a user configuration to a dictionary created from a template :param userconfig: :param configdict:

configtemplate_to_dict(template)

creates a dictionary out of a configuration dictionary, the values of the dictionary are configdata objects that store the template information as well.

getdata(data)

Returns the data of an object, if its an configdata object, it returns data.value, otherwise data :param data:

seq_iter(obj)

To treat dictsionaries and lists equally this functions returns either the keys of dictionararies or the indices of a list. This allows a index = seq_iter(data) for index in data: data[index].

valid_template(template)

Checks if the template is valid :param template: dictionary

Classes

configdata(value)

This is a class that stores the original data and potentially additional information, if it is pickled it is only returning self.value but not potential additional information