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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

multidict-4.4.0a17-cp37-cp37m-manylinux1_x86_64.whl (389.2 kB view details)

Uploaded CPython 3.7m

multidict-4.4.0a17-cp37-cp37m-manylinux1_i686.whl (365.6 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

multidict-4.4.0a17-cp36-cp36m-manylinux1_x86_64.whl (388.9 kB view details)

Uploaded CPython 3.6m

multidict-4.4.0a17-cp36-cp36m-manylinux1_i686.whl (364.6 kB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

multidict-4.4.0a17-cp35-cp35m-manylinux1_x86_64.whl (381.1 kB view details)

Uploaded CPython 3.5m

multidict-4.4.0a17-cp35-cp35m-manylinux1_i686.whl (357.2 kB view details)

Uploaded CPython 3.5m

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

multidict-4.4.0a17-cp34-cp34m-manylinux1_x86_64.whl (385.6 kB view details)

Uploaded CPython 3.4m

multidict-4.4.0a17-cp34-cp34m-manylinux1_i686.whl (361.4 kB view details)

Uploaded CPython 3.4m

File details

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

File metadata

  • Download URL: multidict-4.4.0a17.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.0a17.tar.gz
Algorithm Hash digest
SHA256 9e7052ef529caee1c8671998d909578fbf25be77191e7efe53c667857da475db
MD5 33481171d5314952622128b61cf67aca
BLAKE2b-256 db9763b6bf534c4bda45652c78357a834aab32918c18bd55183d49b48ce2b015

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 46995f9b35ca94b6a6ec95d708ca230b77cb48a21caadcc6e1dd34c1c251713f
MD5 878ba815549272662957cfb3664f0c26
BLAKE2b-256 6593e20b79d88390872c9ec450b8f9901089c15c6e16590e26a251cd99f7e9af

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 39bbb05e93fc5349492811a1627798a6b534fc8bda516d7d9604264fce4cc326
MD5 60152340d3bdd97caf864ed203bc6a17
BLAKE2b-256 fbdc4c59a963b3b343b93a9f32446e4897831b733100bf604e8fc83e4ecd10ca

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 389.2 kB
  • Tags: CPython 3.7m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 58819ae6835b2fcc53787c48a22e7947ee27b5565fa496d8b35f7c58f6ae4c7d
MD5 39fbdf8cd9b5a7f52f709aa94ce3b3ce
BLAKE2b-256 90df0b4bce4bd0d27e8829ea30db164bd541281a932e2b0ee5ab5a51b254a4dd

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 365.6 kB
  • Tags: CPython 3.7m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 97238042b7fdb3ee485e71c67ff8ede551222f23d548827eb396de87624804eb
MD5 b528ec616e59e7afe446feec9f6750b3
BLAKE2b-256 246069bf9573cdd6f533b6f141eece7a8cce16d5940ac4198daee933140b3063

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 db1e039210ab12d7193fcb49e5188818d139d64e48f31d8d1b961bc1ad09f720
MD5 9eca2fba84f250bd9b0dd993d756d9af
BLAKE2b-256 4274ecaf78dcb1c7c6427855a8cbb062fca75ba4bbb92490f14a7824e5d188f1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 4ac6bc1c9555557ed0132e9b504ffe8b64764c78be0c0051a31397926977aabb
MD5 18ea8db5814172bbf9ce27898882fe7e
BLAKE2b-256 4390da251f0ad4e85c522b24618930786999535c4db2fb9d75ac4b55f82ee96e

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 388.9 kB
  • Tags: CPython 3.6m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 de5bb04889f75fc27cf328d8323512e0911992e20bcd7f1232bdc2fac7dda7b0
MD5 681cf756e82c73b698ec489577f0997f
BLAKE2b-256 1d6b2047f7958ccd609e780be99d243fbe70668112b4856033c36f67aff01007

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 364.6 kB
  • Tags: CPython 3.6m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6fbbd746b03bcc6cda371990c398aec12f7a0f3c67cf1b0d3cfbc37c20588a18
MD5 cb34c60a05f905e3547aaaceb5317a11
BLAKE2b-256 9546226420763732c40ebc28eef49a5c485fc1bf80fe12139f01ff978d43d6b5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 17163900eacf2fefaf739bf81b5e238424d91d02d883076378f84648c201e135
MD5 b1729f289001c13f28a65f55a9e5f003
BLAKE2b-256 e19ba447e6591073bac572e206cd7562c20a238638934991ac0d35b795532b5b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 02f3513516be0e1c8cfbcb0e2d035ef7070fb38d70ecaaab9d38ebe15d150024
MD5 e229a78ae0e9a01cdd7d07506a54881d
BLAKE2b-256 8154757b5e749e74a4886310ee6db4388ae32693eca7c736add6d7c21a7b9606

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 381.1 kB
  • Tags: CPython 3.5m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1e2dd1d6e8ae50e242a30e88dcf435dc3f358d94e555411f3a7ee511e4decbb0
MD5 1680a1c962a808d6800f22c36678135f
BLAKE2b-256 6753182369cf9ff63f05b2d49433b5b0c602c2c0dedf664b8132857338cd9b53

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 357.2 kB
  • Tags: CPython 3.5m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d28045ade84dbe86e3a01424a9d4003d1c1b1d52b64d070153c01c3ee9000a0a
MD5 26176006c23a9b1458e795381ebbb517
BLAKE2b-256 346dafadf268b231e4847daa9e54258d79955cd82dfb404d4b391318a63e10b2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 06cf6412d4b0a756168360a11aebf44b4c7d3b0bfaec1073d55dcc4ea116fd17
MD5 342ef56df004aa8a835bf005f2f56ea8
BLAKE2b-256 664f933b5122e9e9f4338ef89a8b912d6cbc791061e322e3ce9d34717f81ad2f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a17-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.0a17-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 00ba700db007f56a65f354dc033b023155063f1910c1377c9f8a11eba44cea90
MD5 49588afb472524284ec1c6df8357b47b
BLAKE2b-256 b07e94d1334ffafc3f3d86c9582d31fa81d832f4723c34128b7a527e88d0742b

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 385.6 kB
  • Tags: CPython 3.4m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2996bd8d2b240e37f46d34efb1bc418a459be7c340180962a010fe620728f779
MD5 bdf1b170cf3d673dbf48492d71266a86
BLAKE2b-256 3c6e38bbe7601aebeee1cac6577db6fe5b108e11121762c9cb3fdb2778537f0f

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a17-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: multidict-4.4.0a17-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 361.4 kB
  • Tags: CPython 3.4m
  • 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.3

File hashes

Hashes for multidict-4.4.0a17-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2e0b2ec4f09ad97407fac6f82871f61a41394de40f106010cbb0837937f02000
MD5 71b16e537ad7f5c810f4419707c8b5f2
BLAKE2b-256 e67cad0b63aa143b05c6a72785dc3ba83f18e5e1e36da00eca577eb53cf2c641

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