Skip to main content

Multivalued dictionary package in python.

Project description

MultivaluedDict

PyPI PyPI - Status GitHub Release Date Build Status Code Intelligence Status Language grade: Python Codacy Badge Scrutinizer Code Quality PyPI - Downloads PyPI - Python Version PyPI - License

本包特点是跟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

The statement to import the package:

from multivalued_dict_package import multivalued_dict

or

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for multivalued-dict, version 1.6.1
Filename, size File type Python version Upload date Hashes
Filename, size multivalued_dict-1.6.1-py3-none-any.whl (21.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size multivalued_dict-1.6.1.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page