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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

File details

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

File metadata

  • Download URL: multidict-4.4.0a12.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.0a12.tar.gz
Algorithm Hash digest
SHA256 f972881325cbf6914dc5b348cb3792f26c52f5429b864b174e76b4b59e292b22
MD5 72f830a5e88af9761f1b9bf9a0e46b20
BLAKE2b-256 577e6876cfb37b8dc962e1987f90fa9ce62fe068d056840ce3cffdc256fb0b3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3ba1953b9303653ad7393a6fb1fa733dad346f94944adc00d14cfd976bac3dc2
MD5 685cb8f08d8c04d765f96c055b3dfd96
BLAKE2b-256 ef978526a1108cbde701eb3955aa973cde43076a7dd1f1ce2d912593bb0c6b95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 6ebe600d037408f28ed62ba3b68997a14dec9cf6487ddcc6baac76980f5d23c9
MD5 ec61da11fbad79c7449216c97152f72d
BLAKE2b-256 ab59b989909e0900bca8830007aac1d2b93296853c674cc3b3f40f04a23d8150

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ea64ef46959a1b4d418f379c4f6aa42de2cdca1dd3e74b260b73c52029ac2804
MD5 2820d8e4912b829644940d538b123570
BLAKE2b-256 72ceaa1c770e390b757896d3098ec4f0960e89d283f9f6ab4f96150e466845e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 374425c0e1706235c6d38aea6ec9e1113dfbdff3267918dd3085fd7eedde5852
MD5 eb88da59f6252318f890d8a878005234
BLAKE2b-256 121af964a70430d1ffb12df65084e1d31727a7c3f5de39e5e2948994e673aea1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 470019962f276883c6098d98a867aad928ab6814baef8dc2b955a93c60b82520
MD5 2405664b86d1f0353804293d836e498a
BLAKE2b-256 e7d13fb097e796ab8f3371b398043f21ea7f42731b56faaabf50213d2ac8a134

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 28a56d65bfe27643339e72441e55ee2269742da98c23eed86a757d29797a4a1c
MD5 ccadacfd8ac2f31ee89d7c50ea90be1d
BLAKE2b-256 860ee3f0e6fbf8c11c6a43d7f8c62fd1e44ff9bdcca1760a36cc5fa58cef1f68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 19a929557a5e8a922797aac3ec1ebb66966e14faa4f15b3a1fed858fc814b23c
MD5 dc884cd5a22258d7c0d066ab92f0d53a
BLAKE2b-256 c9e4c74616447ed00fb6fe11c96afa7b78c5d5328220b283f8d3245c32f5d359

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a12-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.0a12-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 3bfa069f05df88250d75ff6b973b7857abba8c72227708bc12828c59cf6b437b
MD5 2b07ff7101649676bfedaedfb140835b
BLAKE2b-256 e89b739f79c519715cdb7daadcc8e412be34e76ff67e2a3622791e54a4806130

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page