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

Uploaded Source

Built Distributions

multidict-4.1.0-cp36-cp36m-win_amd64.whl (194.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

multidict-4.1.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.1.0-cp36-cp36m-macosx_10_11_x86_64.whl (209.7 kB view details)

Uploaded CPython 3.6m macOS 10.11+ x86-64

multidict-4.1.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.1.0-cp35-cp35m-win_amd64.whl (193.1 kB view details)

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

multidict-4.1.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.1.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.1.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.1.0-cp34-cp34m-win_amd64.whl (189.3 kB view details)

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

multidict-4.1.0-cp34-cp34m-manylinux1_x86_64.whl (479.2 kB view details)

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

multidict-4.1.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.1.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.1.0-cp34-cp34m-macosx_10_10_x86_64.whl (208.9 kB view details)

Uploaded CPython 3.4m macOS 10.10+ x86-64

File details

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

File metadata

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

File hashes

Hashes for multidict-4.1.0.tar.gz
Algorithm Hash digest
SHA256 fb4412490324705dcd2172baa8a3ea58ae23c5f982476805cad58ae929fe2a52
MD5 c7e209d250ad7d2edf8364a2b3670052
BLAKE2b-256 eaebc79ed6ff320ac8e935dcbff8a8833f1afb35c2433bff5bf1c9dabbd631b2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3508bea4974ee30fabcf7c8852fca7d9d54d496eaa068bee8311e0ac4df4ade3
MD5 f5766b62637af9470d97b73c17d17e5b
BLAKE2b-256 a7cf9057465e990b700c84049a57e3b8420d13bd69514c289fb743cd8b3e3e3a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 cd172509bfc9144395204dd2c0eb305ae5e89f8ad1714ffd7d793607c53c3244
MD5 81a1ec4125051160da7eccea5e0fca23
BLAKE2b-256 8ebd5aabd174643668499d10d243df0255aa10203749e29432b44b7980c00b4a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d99819e9e15e1295a31a757360cab65bc96162870f90c29432564bd8e8999aca
MD5 8d81d3604e3434ab216465a2bdc0b817
BLAKE2b-256 7883b42e67e5928d964945c600d8506253fd056e9af5a5ffcc8141f1b14029bb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e04b5bf8581718cf84c1c60bda40221d926ceb06f942ebabfc3baf467a1e34be
MD5 83143912658aa35045acf15970a8317b
BLAKE2b-256 02e41a0a8898fdb6d15c8d3b02370d57f940c1556d87f387ce75fd61bd890587

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 16c78b10e897a512aa34ab1969982e42246e53077ae903c1b334926e1ea832d1
MD5 32a170cb86a07f37af4f2db8a59a3842
BLAKE2b-256 7bbb33948c22670c202c8fa52f1cb603671d765599eff5bbef4ae08e0e275aed

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.1.0-cp36-cp36m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 50de6f3786ba868ffb7d78d4bcacf0928321f9892366b2f4a0426bba644e3f25
MD5 973c46a02462f3aedc5060ae8060304b
BLAKE2b-256 e5fbad07dd0c1d1c3fb9ee036a5c5ad9929ad5dec13e45289507ff9616296bc6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp36-cp36m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 e13265feabb1fa26f9cd49cbafd9b5de70ad768093ddb092af477c9823f44f0e
MD5 77fdb86a21902e5181f55ff1b6b47f99
BLAKE2b-256 47eea92defb8a638fbf03808ba275c877f3d318ac5cb5db2391aa4d95103c925

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 6d5f6f26f9025756035c473167b39c5a72e4e519a2286c9399d21f6682e4e5bc
MD5 65b42d087d12ae5e5c97ffc3e3c4ee26
BLAKE2b-256 a7b812a24141516ec906e9b48761a78c5387b675c5f71e642c44c978067ff6eb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 503ae54582601b0ff647731fee5efcdff5db1f4da0350febb31b628236a5f0b5
MD5 41a547ece36d485d0625b4fe19cadaa9
BLAKE2b-256 58d48ebaa921adc934d2c254cfaf662e874d9fe0abffce1e081b75017276ac62

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 288e8f94fb6f586e7386c1f22c979ce3ec866ab23371fa8fef1dd526cd4dfde1
MD5 f9606422956c10e73d8c64922715a3d1
BLAKE2b-256 994d8c12f5de638801ed4d529c195128fee9030e05cb5d2908d502bf8ef17abe

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 068e91060e3e211441b1a31f5e65de88fc346490e1fae583c35a75a5295c8ef7
MD5 3aa6d8becd9f425d939f5c751372ce42
BLAKE2b-256 e52b1434a631ebd664c4e7d3f7fddfca3158247f5445578281d2bdb349eaeee0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 608f7eef60e6558418d7da6551dd3d07ccc1290ecc85755d781bd8100322ea5b
MD5 6fb8bb900f44b62b642d8b69e03a6f23
BLAKE2b-256 5e545e57f4d4b2b51047274baa4fdf46c4138c29acede4b1aea0343e690fcd43

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 b46ec31bb7729eaa678a3bb1c999460902df1e295fcc093b9aa5f2c7e68d5803
MD5 e9f35f39767ba8c431e83b0fa65142d0
BLAKE2b-256 2f9775c88467eb7846383121f0dccacecd39ff72f6f8ef0a1822848ca84b0036

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp35-cp35m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 ea8a18ea02bf84981ec93faded773a866554666f13955c92139127892c4bb45c
MD5 313f4d002f029fffbe6fd90ad0eb3603
BLAKE2b-256 2542a65a326966eb856a7d45d4702da858528e061ccf6951483ed8d4e4e9f1e1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 241c11614f64535e213ea143efa8b7e598793256601fc795e77075bdfa54f5d6
MD5 bbf0feebb23f71562926504bab761225
BLAKE2b-256 1e2bc618272ba09726d2932ee4ab412cd81de7382cb95202ec1f5f750a94bc7e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 84a1cb5320f1494cd444ca3bd09ddba2e0af0cb210f9263bcf17357ab22671a1
MD5 dfbc28fcc1660a88b6ba746fde909343
BLAKE2b-256 4a26d0c4429c80eae008cb56873d6c0be8f839a53373ca9d359d66d96a7191b3

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63663541d395ffe4d51a3c021467d0a7b46c965b63fa1646cb46e2e2f1f36415
MD5 1a70a4d8bd405f218d61d22a40ae8fcb
BLAKE2b-256 3e46e0e7e0716fdfb8a1569c49aff1f7ad8654ffd15268e2c369c0257b76f0a4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 0462372fc74e4c061335118a4a5992b9a618d6c584b028ef03cf3e9b88a960e2
MD5 975c3d97f0cb0a5783d628d2b941a833
BLAKE2b-256 a154a0db875f61063d318e0f7811e7aff3e82dbf2cb169db5f75f6fd03dc4390

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 65546242d0c481c0daf0ef20c1be81c075fb763c5f4346f18f748b422fc40f32
MD5 b961cc31aff941d2f1bb3ad7a7681d53
BLAKE2b-256 0f02478210fe4a7d642b3c4a228db59f02866c5d6ca25b58725178378cdce813

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 93f1af99bbe75c854370460a60823d6726f9af2196818a64346000d02e074ed7
MD5 0d1df549bef641d832f5d99b82322a2b
BLAKE2b-256 56eb687f990afdd73c9584922289b68faa2ca2626731a6957fef40e53f48bec4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-4.1.0-cp34-cp34m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 0fd4d255adcbab3341d64a2fff5acce23409e57bb94e626485dea3db70ddc35e
MD5 a6734891b77c24b6e012bcaa2647c039
BLAKE2b-256 21e3278e244b30744f92232330a91430943e73071525bcae127ebfd28fa65afd

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