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/aio-libs/multidict/master.svg?label=Linux%20build%20%40%20Travis%20CI 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.0.0.tar.gz (135.1 kB view details)

Uploaded Source

Built Distributions

multidict-4.0.0-cp36-cp36m-win_amd64.whl (194.5 kB view details)

Uploaded CPython 3.6m Windows x86-64

multidict-4.0.0-cp36-cp36m-win32.whl (179.6 kB view details)

Uploaded CPython 3.6m Windows x86

multidict-4.0.0-cp36-cp36m-manylinux1_x86_64.whl (482.1 kB view details)

Uploaded CPython 3.6m

multidict-4.0.0-cp36-cp36m-manylinux1_i686.whl (450.4 kB view details)

Uploaded CPython 3.6m

multidict-4.0.0-cp36-cp36m-macosx_10_12_x86_64.whl (201.2 kB view details)

Uploaded CPython 3.6m macOS 10.12+ x86-64

multidict-4.0.0-cp36-cp36m-macosx_10_10_x86_64.whl (210.4 kB view details)

Uploaded CPython 3.6m macOS 10.10+ x86-64

multidict-4.0.0-cp35-cp35m-win_amd64.whl (193.1 kB view details)

Uploaded CPython 3.5m Windows x86-64

multidict-4.0.0-cp35-cp35m-win32.whl (178.5 kB view details)

Uploaded CPython 3.5m Windows x86

multidict-4.0.0-cp35-cp35m-manylinux1_x86_64.whl (471.9 kB view details)

Uploaded CPython 3.5m

multidict-4.0.0-cp35-cp35m-manylinux1_i686.whl (442.1 kB view details)

Uploaded CPython 3.5m

multidict-4.0.0-cp35-cp35m-macosx_10_12_x86_64.whl (201.2 kB view details)

Uploaded CPython 3.5m macOS 10.12+ x86-64

multidict-4.0.0-cp35-cp35m-macosx_10_11_x86_64.whl (207.8 kB view details)

Uploaded CPython 3.5m macOS 10.11+ x86-64

multidict-4.0.0-cp35-cp35m-macosx_10_10_x86_64.whl (208.6 kB view details)

Uploaded CPython 3.5m macOS 10.10+ x86-64

multidict-4.0.0-cp34-cp34m-win_amd64.whl (189.3 kB view details)

Uploaded CPython 3.4m Windows x86-64

multidict-4.0.0-cp34-cp34m-win32.whl (179.0 kB view details)

Uploaded CPython 3.4m Windows x86

multidict-4.0.0-cp34-cp34m-manylinux1_x86_64.whl (479.1 kB view details)

Uploaded CPython 3.4m

multidict-4.0.0-cp34-cp34m-manylinux1_i686.whl (446.9 kB view details)

Uploaded CPython 3.4m

multidict-4.0.0-cp34-cp34m-macosx_10_12_x86_64.whl (205.4 kB view details)

Uploaded CPython 3.4m macOS 10.12+ x86-64

multidict-4.0.0-cp34-cp34m-macosx_10_11_x86_64.whl (208.1 kB view details)

Uploaded CPython 3.4m macOS 10.11+ x86-64

multidict-4.0.0-cp34-cp34m-macosx_10_10_x86_64.whl (209.0 kB view details)

Uploaded CPython 3.4m macOS 10.10+ x86-64

File details

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

File metadata

  • Download URL: multidict-4.0.0.tar.gz
  • Upload date:
  • Size: 135.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for multidict-4.0.0.tar.gz
Algorithm Hash digest
SHA256 b72486b3ad2b8444f7afebdafda8b111c1803e37203dfe81b7765298f2781778
MD5 03931c4bbdde00350f0a4802054997d5
BLAKE2b-256 57a6922761f00b360ce7555f5bd00f7e80d811f1f552e522efd0691f402f2f20

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 52e0c03f32df10f9f1338054dad78e7a3ff4d36f27c600441190302708653661
MD5 f26b5766a25ca20b88e109f42cbfe55e
BLAKE2b-256 5d95663867b93b91eb8f28e80b2d6b4aef68286db6cd5f94693a8b653fe8328a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b1451f2043af5e540cb7d1d75edb9493e0c6ffee860b6e86cc76d4280b7481de
MD5 79caa2fa039e5b924260e52f29cd671c
BLAKE2b-256 197f085c1ce7c8919b77e308d3bed312defb3aa16a1261bbbab1fc46c3061b17

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 336cdd64fe55344042ea72552e5c09b85632592e2aa532e58faf344a66d60c70
MD5 780af9c4c53f3be331ab06d3a167b0d2
BLAKE2b-256 22395a9266552fd573706725c02174a26c70b1f7bd1eb0ea1df9cbd8256b291e

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp36-cp36m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 42c4164f5e1674ba4f99ada9a02023dc2e38f3646434a43eaa1502a47b511baa
MD5 2e77ed87d49cf39d4f8158a27da844fe
BLAKE2b-256 db464c98278eb61edba9c5f78e12ee263bdd7dd21ed234ddf0b44e2bceda0322

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp36-cp36m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aec53c2f6e48bc08fe3e68da2a24cf890b74cf3d95d9f796ee1bf459c13d9837
MD5 e0fc96373d5cd5d4a4745927c3c0f077
BLAKE2b-256 10dcfd1db8c9cac2926a6255847dc790d78a1067dddaf28692ddbb7b06e1cc12

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp36-cp36m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp36-cp36m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 c1c8e1d9e6997376a7bc90795f337bda9cebef2286954434487d30618e0a5fcd
MD5 59d09d9a942f6ce8333d81ef1cf37fa7
BLAKE2b-256 50000db20db8f280266b6c8cda8c44fac17eb10940e10e3bb58e080c1b135f69

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 805cd5be68cf30c479ad8eb236e091ca04025298b95093624c79da92f3589b53
MD5 9f9d526ecac2724cdb8dfa4c11c3247a
BLAKE2b-256 f0bdc67abf75cd99e13fe0581eb6db09f9cc1dc7a930c9ea7e495478f59dc66a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 a61a984d976c0f7ee392fc56c79faeeacf40df1bfed6d313959a63b2f7e14709
MD5 98eaec9e8e49b45ec73b99e73bc19485
BLAKE2b-256 e009f92185aee4f0dc2fefe9b8bc218acfc11f20ac7ae3546b612c570ddb0a71

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 461e4ec88ccb9a4a0bddd5c60b6621a5731c11ebd7dd107b7c7bd9708ea1335b
MD5 2077012a914b56e48e598fd756f523d1
BLAKE2b-256 d98389ffa14b9bc61c9807c33d7b7d351e4ed93605f4182fa39030c1264a15f9

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 11f1e4b63af8f2a96b4b517bb235946aa61c807144749b2dc21d59bacb7da712
MD5 50f901e2a1b60dccb24b6dcd60cf2be5
BLAKE2b-256 2be9c0dd465f59595018b8ec8c68de7d87c9cb4f6b9ac5a2961be2c4805cd93f

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp35-cp35m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae19e17a45d480199f25770bced6be3d8f23defd7eb2988a7b162da70ec5d59c
MD5 80e792a664971985bd16664de2a647ee
BLAKE2b-256 29beb66ef769133e45443225b14ba046e81aff02f557b0e83192eb16d3c19344

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp35-cp35m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 5d8098e499a3a7877a135c66e60b489fa2a8f5b650c36aa16d70db63dec49cb1
MD5 54b1a67ef3128053a2de890b42cf315d
BLAKE2b-256 ad6dd475ec85674dda101e539be2adda5bf1a120964cc1ccb6a0dc9335cf1368

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp35-cp35m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp35-cp35m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 b581f61a919caad38163aa1d2ba6d861d368f81bc808b95e4192bc16f8934e3a
MD5 65ff551ebab210012be7a873a47dba46
BLAKE2b-256 8434c5e3d4a886ef3dfc84278670a1375364b38edc87cded3e226cff8967e3ab

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2512e9eb913436e7781f873a254c83c5c01263a9986fc63d9c46645c7e347acd
MD5 c819ab52cbfc13d40d419cd7a6f3068c
BLAKE2b-256 ef7d4c44efad443d9518670bb4cc4fd1f05b58bc9e24b34ca747419548a5cbaf

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 985d0646ba5ae984621e8a9247f29ddae8c78f5378b506ad89448fd07bbdabc5
MD5 aa482c2f906a7338a717cbe5cb37739e
BLAKE2b-256 32f02f2c21f437d667e0f02f66d72c1b2e8523e050bc08b340aa7ef43c63b287

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f3644681f3e69a6036df56673ba0ace835c6d88b4872a0c0b7f30e1cabacb1af
MD5 33d259b8fd464c78d84327ca1e17261a
BLAKE2b-256 3e810bfb02b6cbb960f54504bdecf4205e1bd2bd60b564a162cfba7a94668c85

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 34e7be13bf4133534261e3a4f8c00e0cfbf1c436140530d768e67fb23aba2c39
MD5 86ec43257c2aa65a248bc05d2b99b473
BLAKE2b-256 d089faee30d30134e9e38f3a166c39430ffac028cc4ede8194e6a5a92b9e3534

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cad442b44a3ed627b062179713e637d1e99ca258965eb7f9d37bc4028c454f92
MD5 2feae4c9c402beac06528f120b74dd62
BLAKE2b-256 c82fc90f62edd08e3c67abbc1562d64c907c5c864a15eefa05b3e8b6f759816b

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 6c2be0837f87b4f3132a007d0283d259985c7927ae4064907ae0404796a25268
MD5 81924fce7d715f82cd81b5c3f0eb2771
BLAKE2b-256 de846326faa538fb39ac7fa790ef3d95b1124c12462d2abd9ea2ad5e11488a7d

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.0.0-cp34-cp34m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.0.0-cp34-cp34m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 c6f58235bb5571e40eacc03babcb64e08dd291ea7b4dec32694ee5aae36aa215
MD5 65fd6a7446efba2d9e35e35a8a228d2a
BLAKE2b-256 642f6f0e291fb53d8b199268e51538f3aead71e30c4cb3c9b24d41ff3fece4af

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