Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

multidict implementation

Project description

https://readthedocs.org/projects/multidict/badge/?version=latest https://img.shields.io/travis/aio-libs/multidict/master.svg?label=Linux%20build%20%40%20Travis%20CI https://img.shields.io/appveyor/ci/asvetlov/multidict/master.svg?label=Windows%20build%20%40%20Appveyor Coverage metrics Chat on Gitter

Multidict is dict-like collection of key-value pairs where key might be occurred more than once in the container.

Introduction

HTTP Headers and URL query string require specific data structure: multidict. It behaves mostly like a regular dict but it may have several values for the same key and preserves insertion ordering.

The key is str (or istr for case-insensitive dictionaries).

multidict has four multidict classes: MultiDict, MultiDictProxy, CIMultiDict and CIMultiDictProxy.

Immutable proxies (MultiDictProxy and CIMultiDictProxy) provide a dynamic view for the proxied multidict, the view reflects underlying collection changes. They implement the collections.abc.Mapping interface.

Regular mutable (MultiDict and CIMultiDict) classes implement collections.abc.MutableMapping and allows to change their own content.

Case insensitive (CIMultiDict and CIMultiDictProxy) ones assume the keys are case insensitive, e.g.:

>>> dct = CIMultiDict(key='val')
>>> 'Key' in dct
True
>>> dct['Key']
'val'

Keys should be str or istr instances.

The library has optional Cython optimization for sake of speed.

License

Apache 2

Changelog

See RTD page.

Release history Release notifications

This version
History Node

4.3.1

History Node

4.3.0

History Node

4.2.0

History Node

4.1.0

History Node

4.0.0

History Node

3.3.2

History Node

3.3.1

History Node

3.3.0

History Node

3.2.1a0

History Node

3.2.0

History Node

3.2.0a3

History Node

3.1.4a3

History Node

3.1.4a2

History Node

3.1.4a1

History Node

3.1.4a0

History Node

3.1.3

History Node

3.1.3a0

History Node

3.1.2

History Node

3.1.1

History Node

3.1.0

History Node

3.0.0

History Node

2.1.6

History Node

2.1.5

History Node

2.1.4

History Node

2.1.3

History Node

2.1.2

History Node

2.1.1

History Node

2.1.0

History Node

2.0.1

History Node

2.0.0

History Node

1.3.0a1

History Node

1.3.0a0

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.1.0b8

History Node

1.1.0b7

History Node

1.1.0b6

History Node

1.1.0b5

History Node

1.1.0b4

History Node

1.1.0b3

History Node

1.1.0b2

History Node

1.1.0b1

History Node

1.1.0a6

History Node

1.1.0a5

History Node

1.1.0a3

History Node

1.1.0a2

History Node

1.1.0a1

History Node

1.1.0a0

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0a0

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
multidict-4.3.1-cp34-cp34m-manylinux1_i686.whl (457.5 kB) Copy SHA256 hash SHA256 Wheel cp34 May 6, 2018
multidict-4.3.1-cp34-cp34m-manylinux1_x86_64.whl (487.8 kB) Copy SHA256 hash SHA256 Wheel cp34 May 6, 2018
multidict-4.3.1-cp34-cp34m-win32.whl (178.5 kB) Copy SHA256 hash SHA256 Wheel cp34 May 6, 2018
multidict-4.3.1-cp34-cp34m-win_amd64.whl (188.7 kB) Copy SHA256 hash SHA256 Wheel cp34 May 6, 2018
multidict-4.3.1-cp35-cp35m-manylinux1_i686.whl (452.2 kB) Copy SHA256 hash SHA256 Wheel cp35 May 6, 2018
multidict-4.3.1-cp35-cp35m-manylinux1_x86_64.whl (481.6 kB) Copy SHA256 hash SHA256 Wheel cp35 May 6, 2018
multidict-4.3.1-cp35-cp35m-win32.whl (177.4 kB) Copy SHA256 hash SHA256 Wheel cp35 May 6, 2018
multidict-4.3.1-cp35-cp35m-win_amd64.whl (192.1 kB) Copy SHA256 hash SHA256 Wheel cp35 May 6, 2018
multidict-4.3.1-cp36-cp36m-manylinux1_i686.whl (458.8 kB) Copy SHA256 hash SHA256 Wheel cp36 May 6, 2018
multidict-4.3.1-cp36-cp36m-manylinux1_x86_64.whl (476.1 kB) Copy SHA256 hash SHA256 Wheel cp36 May 6, 2018
multidict-4.3.1-cp36-cp36m-win32.whl (178.4 kB) Copy SHA256 hash SHA256 Wheel cp36 May 6, 2018
multidict-4.3.1-cp36-cp36m-win_amd64.whl (193.1 kB) Copy SHA256 hash SHA256 Wheel cp36 May 6, 2018
multidict-4.3.1.tar.gz (137.4 kB) Copy SHA256 hash SHA256 Source None May 6, 2018

Supported by

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