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.7
pip install multivalued_dict
Usage
The statement to import the package:
from multivalued_dict_package import *
Example:
>>> mv_d = multivalued_dict()
>>> mv_d
multivalued_dict({})
>>> mv_d = multivalued_dict({'a': ['test-1', 'test-2', 'test-3'], 'b': 'test-4'})
>>> mv_d
multivalued_dict({'a': ['test-1', 'test-2', 'test-3'], 'b': ['test-4']})
>>> 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']})
Statements for automated testing of modules:
import multivalued_dict_package.doctestmod_module as mvdt
mvdt.doctestmod()
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.7.3.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for multivalued_dict-1.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba27cc7994437c15c90982382f225f7bbb7a16a38f5c5cb569dd3f966d2e87b3 |
|
MD5 | 8d4f9feb3b4efeaeaec73391bc99a452 |
|
BLAKE2b-256 | d27abf859864e82e5e2a78cc8dda7523676c2a496a733467ef23ee0863af7dac |