You are here: Home / LBN / Up2date / Cloud Computing / BastionLinux 19 / python-multi_key_dict-2.0.3-1.lbn19.noarch

python-multi_key_dict-2.0.3-1.lbn19.noarch

Package Attributes
RPM  python-multi_key_dict-2.0.3-1.lbn19.noarch.rpm Architecture  noarch Size  71457 Created  2019/09/30 06:54:43 UTC
Package Specification
Summary Multi key dictionary implementation
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/m/multi_key_dict/multi_key_dict-2.0.3.tar.gz
Description

Implementation of a multi-key dictionary, i.e.:

(key1[,key2, ..]) => value

This dictionary has a similar interface to the standard dictionary => but is extended to support multiple keys referring to the same element.

These elements can be accessed using either of those keys (e.g for read/update/deletion).

Multi-key dict provides also extended interface for iterating over items and keys (e.g. by the key type), which might be useful when creating, e.g. dictionaries with index-name key pair allowing to iterate over items using either: names or indexes. It can be useful for many many other similar use-cases, and there is no limit to the number of keys used to map to the value.

There are few other useful methods, e.g. to iterate over dictionary (by/using) selected key type, finding other keys mapping to the same value etc. Refer to example/test code to see it in action.

Requires
python  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
/bin/sh  
rpmlib(PayloadIsXz)  
Provides
python-multi_key_dict

Document Actions