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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

File details

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

File metadata

  • Download URL: multidict-4.4.0a10.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.0a10.tar.gz
Algorithm Hash digest
SHA256 293100d6afe4299477720e822754776b41adfecc181fb8ab7f7046dccc39fade
MD5 507cd522780f76599c51187827608355
BLAKE2b-256 7804511c81518c54571188d17022ceb8f9f98af05539a629cc3cf3755b1f749c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ec2604536428a020846bdcb7ecd33cf895628e62567fba1443c06185b756c05e
MD5 390b0830200d495b41d62f74185c2f7f
BLAKE2b-256 30db7930c0a9d6e4bff956b54682ba58559630dc419792f1589a8bfdd81fc7ee

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e4cafb7194100280b773a77defa007dba826740269db20cf46abade76fae9935
MD5 2c96ddbac3a9fb5d2517af823041d013
BLAKE2b-256 065d139338ff0444fcac429277ac1a527dd76c339a69efa274cf3ea078a3adad

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 514aa906bcff3a188bec72ba47297d367eadb3156d8482069f0a42432ba73d05
MD5 a32cf24cc9b6800f84a3ce3b2e4b8168
BLAKE2b-256 a01ba80761b104e0b330dc337c825d018c99c8f8acd809a69ae3d332aa518cd4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 446a4f6536f501d27090e74caddc407519aeef64fe61b8b2770904e6466ca307
MD5 85c28c5bb8d60a80f43769bd28a8df79
BLAKE2b-256 6f42ebf040d285573ac3bb5f019f07557aa092a7ae9fe6945cfdfccfa003209a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c1fa75dca3e0e0960bbecaff7e39da787fed7e74a99450ae44cd512a667f1caf
MD5 5bb0ff783f6df74103174b1d870a4b7e
BLAKE2b-256 a36d793473ee55fda4f136aeb8dcbe21122a5d89477d8fccd9e9c232c6e03a6b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 6384c6c8cc5574284b0a6a4c64bf788993745bf36c2148089fccb0d1751483f4
MD5 0d2ccc83b1c28c87a35b3f154287adfa
BLAKE2b-256 e22a1756eb1940ab8723466d65395097cf613a7153a91be01c2b16371e09bcd2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cc4ea8f7c39c4b0644609aa1d2679de097f0b8a7e65cd2ae2b4ebbdabab84ea6
MD5 cf75d97574b5f2ef07fc43ef73ba9fca
BLAKE2b-256 c0a9b5f58abce4d9fe6417b24775ffb80586e0d8c8d28ed42caf854f3da97559

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 698c3e9efeea82176c44e8d6882225e329b443503b4a9e343dcb18600852cc21
MD5 2a7325e65e3d46075f7b3a8a8ae87931
BLAKE2b-256 695cf0b3c10fe7e4a8c80b131828828138177e0faf986b22365cef90abc0dd2a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 917c0f805806cc75c0e8e3be2ac21ceb9f239568fbc00eb9862b5021954e7645
MD5 52cd054fcc3670e3fe654412af5cc642
BLAKE2b-256 b111ec70064e84021bc227d4c219d30a1cc4d4fbc62b904dc350c38e25298cd0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 b986826d9500e10135fd79f84e6f33e9252f31fe16968d143599cf4bb292315e
MD5 e4746c420bc889391e8f6167fac7f184
BLAKE2b-256 2390c756abd879a8bdc2e10f07f181b9b4e266e036470d5050dcc52960a1f866

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d105f88240c729e9f078385e17a5f740a1799b1401fbb3986c42eac01cca5c94
MD5 ae8214d1e42c87582896e606c628c3c0
BLAKE2b-256 e52e84538bca9506dafae8f6d8a4bd37d3a2147e5bc413d92b202ecdf60b5860

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e9a1793402ff1d5a2209d366046c9141ed3019d4582f70a1f9eb4008d9f49be9
MD5 16465a9ff4713990adbdabf53c7a0943
BLAKE2b-256 33fb487c6b1b3fee1431caa0403da38972bd3068f549d0279bd11536283addf7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 eb365f5bde2849cbac102e0259536fd843d2cd08960d54cd8f9b3ef2dd2e6a5f
MD5 8d7cea0300eb74c3d898cbbf06647c59
BLAKE2b-256 6c46a8353a8ed1942aa5ce62446c4167022cd831eaa98ef06f8dd673640727a6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 9558d9586f0b55dc319684f1c44eddc3aedbb571c773fc3893f48ab503210434
MD5 9e3073dedcefa282922777138370d336
BLAKE2b-256 5b2a5f5d8ca24a66148eeb93c343ad13bdbd87a22526fad9e4a8bd734dcf50d7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ecd3f3fc78261bd8ca5b1a1204c3241691bb55d0b5ea2f52647686f690c2c1a6
MD5 32cd0f785a2528b451cceaa68890f3f6
BLAKE2b-256 990a13155ece3f9f5f8feee131a58da3702f18fefeeb110707fff2c9e178afb6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a10-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.0a10-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 cf2fb7806b165ed7f11fb7e1d918f032e24309ce67dd1be551965dbe93c1050b
MD5 1585f5de001ff24620380c73c7b81d21
BLAKE2b-256 1c7fa79ead3ff15a7c16d25ff001aea686ce95405e344d48d43159a538d3178e

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