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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

multidict-4.4.0a14-cp37-cp37m-manylinux1_x86_64.whl (389.3 kB view details)

Uploaded CPython 3.7m

multidict-4.4.0a14-cp37-cp37m-manylinux1_i686.whl (365.5 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

File details

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

File metadata

  • Download URL: multidict-4.4.0a14.tar.gz
  • Upload date:
  • Size: 118.0 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.6.3

File hashes

Hashes for multidict-4.4.0a14.tar.gz
Algorithm Hash digest
SHA256 d802028424140a6237a4e0ceab238350d633ede078bb4ff0d36d94e10d7f0323
MD5 39ea8e6733b1fe74caaea0d389a6335e
BLAKE2b-256 d38e61f5669f7b32c173d7028adc29907a5f7e5d709cfd918b6b67c1794c47d8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ed90d8a6ae16e4d9c18f73dd43de94422f4f3eb68cd1541f5dc0170bd10a7ff3
MD5 5c6f377ead1bf89339cbc556a8406658
BLAKE2b-256 b4bf04c5383db5c4849ad1719943f71d1edb1053bbe16df9bbb3b3249bfe3d9b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 5d46c13b4229cfbbdf30f1fb7cc372a331567f743050341f0ab6025e15ff3628
MD5 218a1aebd508363f0d523422e2b8d968
BLAKE2b-256 4b9107a63f77f0595e59bfbba71a259c4fb41afdcf9a038acfb5a14c73b29179

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 389.3 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.0a14-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 03d48aa2a23e939055ecf2576d058892f23dfdd914140a46bf76af6fbe493c60
MD5 c8e23d47867667c51eefc0dfbd97dcd7
BLAKE2b-256 3b77f7a3709cadd78e51cbee98d0b7daf91439aefe66f56f88362f080eed0839

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 365.5 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.0a14-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 23d5f11d305946f8ab1fc88f96665ac932ea69315bee812328c7188280a57c92
MD5 59a324e51d57409d3eb4a73924a7239b
BLAKE2b-256 dbca0eeb583e5abe20b1939b72f2e96a4ac938112dade76f5cbad3ddf15a1895

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4faa6f4022116159bcb179d319677282ed276ab90675a308cac007d1c64795b7
MD5 f79bf61f5bf7a8952bffe61a8c3651fd
BLAKE2b-256 62b467a9dbe28214f2288015150aae62f47dd481482a356e6a2f913b86593e69

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 fd51fc75d076be9592262c172e43690b20570e8230da52b7635902e1868841e2
MD5 b124bae6b41e0da53e82beaccab2b487
BLAKE2b-256 2ef46f85d482c465f110a0dc95df4a563e454eb79f68736bd2e768873021b1e4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 76fe33e94a378c9061b2cc3aa723998ec7840c09ca60d8e8be616e548ffbb275
MD5 72892b4ee70365e614eea717b14c5acc
BLAKE2b-256 cd2431429d1f5199a4b1e99380c776d5de4e3bb9b53fc839c57fa38cd4697b45

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3cdc84b5fb1eaaada6b3447f0d0bb34ace92d4711cd7d6be00e4499bc41bc704
MD5 1256cbe171a616b2af9af1190d3b0947
BLAKE2b-256 a974070ed4eafe05517ad85eee9fb1a1647482b519707867945dd56bdaeeb0eb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3bdcdd57e87d6d62c9946c09ca08fb4d9fe8bd7b53325769a51c114400f4c16e
MD5 98463895d7b12957e20e986c86fd73e2
BLAKE2b-256 4af98ddabc57daa877d15e9414530ffc0aac4430de012f9b65a0b7b17a58bb9d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 3fcc242b405d383243e76177a16c0a8fe4b7422ebbc794243c9b4c9d7e4f1f6b
MD5 37e9583c2b5561c9dd7532e09dd536c3
BLAKE2b-256 f63b1e029c7151e267524f35d25c1f6ef786c68725e51b5b9b2fe8d095110283

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f4620014638883f2a718ce897c65e98dd0192be6b8be859c8f4204a644241af3
MD5 7497fb8caa41bda89aaf2bca41fdbdbb
BLAKE2b-256 479be07c8ac09420e1532c3079db0cf3d7110641601c806465aea2f75fa8d208

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 5576ccdaaf84e23f36772a9aa39446b0f72eed24d69163794ceb7aae07789a9a
MD5 55ba82c50ce83df7be5a46f2820f9bc3
BLAKE2b-256 0c299f73485163819707895da9b01db902f7166515d6d7d80034643a6960fb88

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 ca63c8bf9f483141ae873942a1ef86d2718ea72ced2e2e50073c460d35cec74c
MD5 bd3662c0531f8c8b039d40abb23fff44
BLAKE2b-256 de148a0efaf403f9b6d8daf5721ddadebc43b307492397fd892c1c1abe29a0b0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 fa0c95ed01385a1e0ab745dcce800886955b0d192c9b640d4756ad9e9bb40cb0
MD5 0c7daa7880f1bfe7f38a720d0e6e300b
BLAKE2b-256 d8e91ee95c23f4a9e0a3b2af572e7da88e2f16b40c3e9477dfaebdb824b45d24

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0fed72454a52ae8bacbec460d229dd2a68174506a0346eeb8b6b5d1ec6097027
MD5 3753a8098f3dc56fd023843e99e4ae1a
BLAKE2b-256 1400bd1c0f32223771e5f5ade7876c2f9c4c52107120597fc3cb3d2307cda45c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a14-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.0a14-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7b588b06d5a4b85b339891aed7574b7dc35a8c242135cbdde40a515c2e9b3dfe
MD5 d557a93367abd381e052f08fe77f2ca7
BLAKE2b-256 4d1c30cad54a0d34e1a332cc3f9fea6f0481acb6789f001edf9bafd59964a551

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