PedalPi - PluginsManager - Util¶
pluginsmanager.util.dict_tuple.DictTuple¶
-
class
pluginsmanager.util.dict_tuple.
DictTuple
(elements, key_function)[source]¶ Dict tuple is a union with dicts and tuples. It’s possible obtains an element by index or by a key.
The key is not been a int or long instance
Based in http://jfine-python-classes.readthedocs.io/en/latest/subclass-tuple.html
Parameters: - elements (iterable) – Elements for the tuple
- key_function (lambda) – Function mapper: it obtains an element and returns your key.
pluginsmanager.util.pairs_list.PairsList¶
-
class
pluginsmanager.util.pairs_list.
PairsList
(similarity_key_function)[source]¶ Receives two lists and generates a result list of pairs of equal elements
Uses calculate method for generate list
Parameters: similarity_key_function – Function that receives a element and returns your identifier to do a mapping with elements from another list