Multivalued dictionary package in python.
Project description
MultivaluedDict
本包特点是跟dict原生类型用例高度一致,包括发生异常的类型。在此基础上增添了一些专门的多值字典方法。
欢迎补全文档。
Multivalued dictionary package in python.
Welcome to complete the documentation.
Installation
Installation can be done through pip. You must have python version >= 3.6.
pip install multivalued_dict
Usage
from multivalued_dict_package import multivalued_dict
or
from multivalued_dict_package import *
>>> mv_d = multivalued_dict()
>>> mv_d
multivalued_dict({})
>>> mv_d = multivalued_dict({'a': 'test-1', 'b': 'test-2', 'c': 'test-3'})
>>> mv_d
multivalued_dict({'a': ['test-1'], 'b': ['test-2'], 'c': ['test-3']})
>>> mv_d = multivalued_dict([['a', 'test-1'], ['b', 'test-2'], ['a', 'test-3']])
>>> mv_d
multivalued_dict({'a': ['test-1', 'test-3'], 'b': ['test-2']})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
multivalued_dict-1.3.1.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for multivalued_dict-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c7111528f28078088d4e8fda0552c2b3e431690b27edc2396a4123b2e66612 |
|
MD5 | 2e16674a4ce6825d754f8ff488ad5960 |
|
BLAKE2b-256 | 26163bbfc2ef9ee04df39787a370cde6c40c3f55f855d34399ca8392119cb038 |