serial_hierarchy

module serial_hierarchy. A SerialHierarchy represents a hierarchy of transformations that are applied one after the other

class serial_hierarchy.SerialHierarchy(values: dict)

A SerialHierarchy represents a hierarchy of transformations that are applied one after the other. Applications should explicitly provide the list of the ensuing transformations. For example assume that the data field has the value ‘foo’ then values

the following list [‘fo*’, ‘f**’, ‘***’]

__getitem__(item)

Returns the item-th item :param item: :return:

__init__(values: dict) None

Constructor. Initialize the hierarchy by passing the list of the ensuing transformations. :param values:

__len__()

Returns the size of the hierarchy :return:

__setitem__(key, value)

Set the key-th item to the given value. If the key-th item has already been set it overrides the existing value :param key: :param value: :return: