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.0a2.tar.gz (121.3 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

File details

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

File metadata

  • Download URL: multidict-4.4.0a2.tar.gz
  • Upload date:
  • Size: 121.3 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.0a2.tar.gz
Algorithm Hash digest
SHA256 c19727c60349d4f667b5f898bd3c86d1cd1d82679af7c1d0719baab9ff3424bf
MD5 5b8536b676c211860abf35c6e404d3e8
BLAKE2b-256 3ad3795b05c3d018bb210f38ba7978e8ce239ab5d79ff38ab5646dba91581091

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 58efb5a54e7bbf6ac3d59a4c427c6694fe2954409b3bc57e61ed807985ea8a5e
MD5 813cbe8bb0cc72cf6067fb2c310af572
BLAKE2b-256 71aa1e9f00719fdc0fe3d1b03b1497aa9b5b352f4d2e38b1f594d9b104ad96a2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 7c96c6af19d9d105d6ef09320172ed34de9ea91658405f2b1b2df3f08865b952
MD5 82cbdb0f9761a4009f601586e92d7d73
BLAKE2b-256 62c68bcb08d96f81ab10ff766bd868e0e54ca2a188af655fd30659db63e7711e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 65e8b0ed466f064087fbe03f0b9a0c05cf2e4b9a7ec00928c4d8601503fb01d0
MD5 31b763572465b45c491010ac8beecb44
BLAKE2b-256 b0805e562a4f5cf85a14dda68b78eeaf63408916e9df19bb1b600a939abdb0c6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 2f1d55193524dcaf14310106a2cb0b38ee17ed5c300d986f4c83c8d6fcc16cba
MD5 86fec7339db53b825e8b105f44fbb448
BLAKE2b-256 11a99392c4ed8f543a955e7951dd5b836805847c5b5bdf560bafd67b3f5437d0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 898062dda46d2e7635124cb63f72ead274743b4fe347c77ead2cae7f98bd933d
MD5 331aa185541243441aecd3c8432474fc
BLAKE2b-256 d1735b962e931ffd5c39d3eab2d163b897ef202344ed3c0981258239adaf703d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d2c5635d48bddfec9df9449830c5114a1d5b9935555f7d704fc9b3b21170b4a1
MD5 9023d318ec5a5648dc0c2f49ae8426f8
BLAKE2b-256 58fb09cdf9a72f7e80fb4d58593f31ee0b6b5704d3084b701e42ffefde088a18

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 3565aabee1b21faa49c66b63102e709c32f69e3054be1ce2b7b32ed7bd6c7172
MD5 1b9704820f81ed876cea78d2d790e15d
BLAKE2b-256 8ba6377eb76ba7c7a62616a0a704bb584a360b26facaf65af5adb0e682b4315c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a2-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.0a2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 80328ed8b302a586264741898151ed8858a54123a50b63ae6eede91c81c8e247
MD5 31df3463e0ccb2d96519b9f8879b2a7a
BLAKE2b-256 e98eb76310e171c33986c0dee770b3310d4a72cad8ff5ef7821d65a106ce4d19

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