Skip to main content

multidict implementation

Project description

Azure Pipelines status for master branch Coverage metrics PyPI Documentationb Python versions 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 C Extensions for sake of speed.

License

Apache 2

Library Installation

$ pip install multidict

The library is Python 3 only!

PyPI contains binary wheels for Linux, Windows and MacOS. If you want to install multidict on another operation system (or Alpine Linux inside a Docker) the Tarball will be used to compile the library from sources. It requires C compiler and Python headers installed.

To skip the compilation please use MULTIDICT_NO_EXTENSIONS environment variable, e.g.:

$ MULTIDICT_NO_EXTENSIONS=1 pip install multidict

Please note, Pure Python (uncompiled) version is about 20-50 times slower depending on the usage scenario!!!

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.7.3.tar.gz (50.1 kB view details)

Uploaded Source

Built Distributions

multidict-4.7.3-cp38-cp38-win_amd64.whl (48.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

multidict-4.7.3-cp38-cp38-win32.whl (46.4 kB view details)

Uploaded CPython 3.8 Windows x86

multidict-4.7.3-cp38-cp38-manylinux1_x86_64.whl (161.8 kB view details)

Uploaded CPython 3.8

multidict-4.7.3-cp38-cp38-macosx_10_13_x86_64.whl (48.8 kB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

multidict-4.7.3-cp37-cp37m-win_amd64.whl (48.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

multidict-4.7.3-cp37-cp37m-win32.whl (46.3 kB view details)

Uploaded CPython 3.7m Windows x86

multidict-4.7.3-cp37-cp37m-manylinux1_x86_64.whl (149.2 kB view details)

Uploaded CPython 3.7m

multidict-4.7.3-cp37-cp37m-macosx_10_13_x86_64.whl (48.7 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

multidict-4.7.3-cp36-cp36m-win_amd64.whl (48.5 kB view details)

Uploaded CPython 3.6m Windows x86-64

multidict-4.7.3-cp36-cp36m-win32.whl (46.3 kB view details)

Uploaded CPython 3.6m Windows x86

multidict-4.7.3-cp36-cp36m-manylinux1_x86_64.whl (148.0 kB view details)

Uploaded CPython 3.6m

multidict-4.7.3-cp36-cp36m-macosx_10_13_x86_64.whl (48.7 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

multidict-4.7.3-cp35-cp35m-win_amd64.whl (48.7 kB view details)

Uploaded CPython 3.5m Windows x86-64

multidict-4.7.3-cp35-cp35m-win32.whl (46.1 kB view details)

Uploaded CPython 3.5m Windows x86

multidict-4.7.3-cp35-cp35m-manylinux1_x86_64.whl (147.8 kB view details)

Uploaded CPython 3.5m

multidict-4.7.3-cp35-cp35m-macosx_10_13_x86_64.whl (48.7 kB view details)

Uploaded CPython 3.5m macOS 10.13+ x86-64

File details

Details for the file multidict-4.7.3.tar.gz.

File metadata

  • Download URL: multidict-4.7.3.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3.tar.gz
Algorithm Hash digest
SHA256 be813fb9e5ce41a5a99a29cdb857144a1bd6670883586f995b940a4878dc5238
MD5 bafb3123d53853790871f657a96491d3
BLAKE2b-256 84965503ba866d8d216e49a6ce3bcb288df8a5fb3ac8a90b8fcff9ddcda32568

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 73740fcdb38f0adcec85e97db7557615b50ec4e5a3e73e35878720bcee963382
MD5 74550f3a815d37d3c5718bc501ffd775
BLAKE2b-256 eb018128fa4c4a3e2d10ab160a67c34b1f0cfe8806c885c4720faa55acb53b0b

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp38-cp38-win32.whl.

File metadata

  • Download URL: multidict-4.7.3-cp38-cp38-win32.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bfcad6da0b8839f01a819602aaa5c5a5b4c85ecbfae9b261a31df3d9262fb31e
MD5 99e0482c5210e7c8f32d557aa50917da
BLAKE2b-256 e6f69feb13036c1f21e43b98202ee7c78712712691383d2a50920fd942de7f6d

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 161.8 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cc7f2202b753f880c2e4123f9aacfdb94560ba893e692d24af271dac41f8b8d9
MD5 0d3dbbe08abef726722fc12acb9f1f94
BLAKE2b-256 c1b2b83f3454347653cec3549d442e9e81f71cbce75f256cecee3e242611f551

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5d2b32b890d9e933d3ced417924261802a857abdee9507b68c75014482145c03
MD5 3b9fce4f6fd2136f81e52745434b065c
BLAKE2b-256 66bf7376b3a936615646e981dd938e79d1c4ab92a09c44df4888326299fc0622

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5e5fb8bfebf87f2e210306bf9dd8de2f1af6782b8b78e814060ae9254ab1f297
MD5 c4398aa186fb58b361d72d495a1343d9
BLAKE2b-256 bf0e79b8e0dc91077d262e685e62865862883445809a4c7bb0cc0637b2253dde

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp37-cp37m-win32.whl.

File metadata

  • Download URL: multidict-4.7.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 aacbde3a8875352a640efa2d1b96e5244a29b0f8df79cbf1ec6470e86fd84697
MD5 e700efb10e94021056e9301019cad074
BLAKE2b-256 d08d204acd7cf9a6ee892947fb6ed67990c75781d2c35f3f74e73b5453cde74e

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 149.2 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c66d11870ae066499a3541963e6ce18512ca827c2aaeaa2f4e37501cee39ac5d
MD5 c2e6c952aaa64d05a329d96e76bbd01d
BLAKE2b-256 f9e97d3ac453ea8fbf3aed9479809ec6093e88e88e495c534c4636ecf7fc8fb9

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c2bfc0db3166e68515bc4a2b9164f4f75ae9c793e9635f8651f2c9ffc65c8dad
MD5 e0088c2cfbe3a3f2fa33508d2d62e3b9
BLAKE2b-256 05844ab5ba3a052d811085ba4fa088de651de495e4362010481fd189dcca1a47

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3c5e2dcbe6b04cbb4303e47a896757a77b676c5e5db5528be7ff92f97ba7ab95
MD5 50f25e4bda05f7a7d002dfca263c77a2
BLAKE2b-256 9b2ec797d0bf93824556ebdc9e09c72f50bdd29108dcfc2bc4199934b29e5784

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp36-cp36m-win32.whl.

File metadata

  • Download URL: multidict-4.7.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 63ba2be08d82ea2aa8b0f7942a74af4908664d26cb4ff60c58eadb1e33e7da00
MD5 56bd472882fd3b2d7722d1a17fc498f9
BLAKE2b-256 fd3e7a1815261d7e73de934b004339097962390b60e9cabd97bffc91c1a013ac

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 148.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0f04bf4c15d8417401a10a650c349ccc0285943681bfd87d3690587d7714a9b4
MD5 b9b854006f33f6fad077940e1fe9cf81
BLAKE2b-256 24d4ce90c4376ed1bb34225419e11f649cfe5e95c56e64d5a8392d5e6e58bac6

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 78bed18e7f1eb21f3d10ff3acde900b4d630098648fe1d65bb4abfb3e22c4900
MD5 f877545434f00092d3593bd2b87f5af1
BLAKE2b-256 d1cfb704ecdf72f9210232abd80a2eea7ef8f51b4e5939c7bfc779583e25e3f5

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 a02fade7b5476c4f88efe9593ff2f3286698d8c6d715ba4f426954f73f382026
MD5 73bbc75de2373584d001f8c5d4466074
BLAKE2b-256 b951ffc1034cfac660d616024595d4fdd9fdf094ec8f3e31a32be58543dddf3e

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp35-cp35m-win32.whl.

File metadata

  • Download URL: multidict-4.7.3-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d1f45e5bb126662ba66ee579831ce8837b1fd978115c9657e32eb3c75b92973d
MD5 de5309c4f05ab0215192c1a06b147d62
BLAKE2b-256 264f2d6820455f2694118acb4d74ec6556cfcdc87dcf3ae2279b75aa751beac9

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 147.8 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 15a61c0df2d32487e06f6084eabb48fd9e8b848315e397781a70caf9670c9d78
MD5 dd35fd53fbb5e524defa9181b90adaff
BLAKE2b-256 0a9fa4d52d66732a9bd4c03d5a72afe6b5fe9de9fe4cf2f68ef397d62c2b75b6

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.7.3-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: multidict-4.7.3-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for multidict-4.7.3-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ed5f3378c102257df9e2dc9ce6468dabf68bee9ec34969cfdc472631aba00316
MD5 091133345db69d2f0c574d962e2192c2
BLAKE2b-256 039f1ce74c33cf7ff6d9a3b38fb87917f526e5cf3c892dc31f5b830076757e21

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