Skip to main content

multidict implementation

Project description

https://img.shields.io/pypi/v/multidict.svg https://readthedocs.org/projects/multidict/badge/?version=latest https://img.shields.io/travis-ci/com/aio-libs/multidict/master.svg https://img.shields.io/appveyor/ci/asvetlov/multidict/master.svg?label=Windows%20build%20%40%20Appveyor https://img.shields.io/pypi/pyversions/multidict.svg 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.

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

multidict-4.4.0a16.tar.gz (121.2 kB view details)

Uploaded Source

Built Distributions

multidict-4.4.0a16-cp37-cp37m-win_amd64.whl (162.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

multidict-4.4.0a16-cp37-cp37m-win32.whl (152.8 kB view details)

Uploaded CPython 3.7m Windows x86

multidict-4.4.0a16-cp36-cp36m-win_amd64.whl (162.1 kB view details)

Uploaded CPython 3.6m Windows x86-64

multidict-4.4.0a16-cp36-cp36m-win32.whl (152.9 kB view details)

Uploaded CPython 3.6m Windows x86

multidict-4.4.0a16-cp35-cp35m-win_amd64.whl (161.1 kB view details)

Uploaded CPython 3.5m Windows x86-64

multidict-4.4.0a16-cp35-cp35m-win32.whl (151.8 kB view details)

Uploaded CPython 3.5m Windows x86

multidict-4.4.0a16-cp34-cp34m-win_amd64.whl (158.4 kB view details)

Uploaded CPython 3.4m Windows x86-64

multidict-4.4.0a16-cp34-cp34m-win32.whl (152.3 kB view details)

Uploaded CPython 3.4m Windows x86

File details

Details for the file multidict-4.4.0a16.tar.gz.

File metadata

  • Download URL: multidict-4.4.0a16.tar.gz
  • Upload date:
  • Size: 121.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.4

File hashes

Hashes for multidict-4.4.0a16.tar.gz
Algorithm Hash digest
SHA256 0d041e543eed163db7242eebfae0bf561f17af6d4fd757683581e39002a45d5f
MD5 6c7b8c28369db76f0090585c7affad3f
BLAKE2b-256 ed3859d61ebe3b091d06bb7e48df2d30377d46e63c168792f4501a48d3eb7f49

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 162.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for multidict-4.4.0a16-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8b1be6c9566f64e988c44872ce56cefea27ccb6f359c6dc9d9940874f7ec70c6
MD5 c1007d04107f0d795c6d7013cc775587
BLAKE2b-256 997e24e544cfefd3c13ea3c934a84dbab0ab30d69e66a8949aa87ce4c0bdadeb

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp37-cp37m-win32.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 152.8 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for multidict-4.4.0a16-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 c31129cb5504f5fd0690963db6f7f733b91be0f79e721404ae0da1cdae358168
MD5 50fdcdd15857074dbfed77109b8f7f52
BLAKE2b-256 a78557885b7683d35c7c4c1cf542d0498aef7e110903bd15a08c74100b3b6bb8

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 162.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for multidict-4.4.0a16-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 85a34a5f743ecbb126876a8c15afed124c0c86f43a062bcc5a6fa63b3518f2b6
MD5 6e0fbb46c649ac17317d7b57572a8075
BLAKE2b-256 82ee7df9d46ee55fdf77560c5b9cfcb2732a3cecdb593d56ae88d2fd0fd8876b

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp36-cp36m-win32.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 152.9 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for multidict-4.4.0a16-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 2b2d762d0d6afac797fb50388aba63d45e5544e3132a0599b5f8a0e9f80140e3
MD5 3ae6c2128336c8a24cf96104385a35c4
BLAKE2b-256 73f92b9054328eb6df0a3ef554a2c74ccea536fef29cb001a95c7a420410bc10

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 161.1 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3

File hashes

Hashes for multidict-4.4.0a16-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 005d54a41a68268113f7b6300bc55c01a8bd0d84ff108905110a61fc6df5a7d9
MD5 eda46e00c0f3cab0e1056874ae0cea05
BLAKE2b-256 ee74d2d9211f867037729535eb49c536e3aa8eed8b6521bfaf169b74f4fa0b1e

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp35-cp35m-win32.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 151.8 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3

File hashes

Hashes for multidict-4.4.0a16-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 4121e6216ba01d92f094b913571126f2d8f6b63e02ed904e9c1f523e75954bf4
MD5 0aa3193d20b5c0c6e5aef44eaa2abdac
BLAKE2b-256 1230616c9af5b7f88ad8eb38f68d2d7832a882496ec674eae30614f0fe4c5821

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 158.4 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.4

File hashes

Hashes for multidict-4.4.0a16-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2a34d9dab0462c214753351ae04e3a0f497122c4317bc64341411b490b053178
MD5 faf0904f3c14978119e79f68d6d89f8c
BLAKE2b-256 c61284cbbde670ec30887edc0c30da84563ab5885a7cd96992019a72c4942745

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a16-cp34-cp34m-win32.whl.

File metadata

  • Download URL: multidict-4.4.0a16-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 152.3 kB
  • Tags: CPython 3.4m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.4

File hashes

Hashes for multidict-4.4.0a16-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 4a907f79198c4569e86398c4765f49618493341d22e7c19634bc1a61cfba5e0e
MD5 8d025d0a66e77ec47f83a2d5904ca244
BLAKE2b-256 425f8f8a446ba1e71bf5c16dccfe4f35601269c58899aa9c0bf68e219278fd49

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page