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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

multidict-4.4.0a5-cp37-cp37m-manylinux1_x86_64.whl (389.2 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

File details

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

File metadata

  • Download URL: multidict-4.4.0a5.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.0a5.tar.gz
Algorithm Hash digest
SHA256 9d9949ba7acc2e96c3bbbd31afd88e902ea89a92a8e191d0761bf0796c0f83ff
MD5 9e25e2000e9de0b8f5755c53d6397477
BLAKE2b-256 ef0061bba3dae70d88e1482cd4729ad4ed3d3fb7e545bf645746112061c23685

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9039427d73c7eb1cef7ca9620a876343d2edc858769f9ec86d21019bbda23c1c
MD5 fad43a3b94bc882db65c8847330927e2
BLAKE2b-256 b370a5b3da93457b2f9a3945a25db09ce487bd5598dc1dc90ef34e392b05790f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d0a38d18126d51fccde49c51f66168a840da413aba387372eebeb279e98edd8b
MD5 1dff949f994ea6220f199d022df26edd
BLAKE2b-256 b7a786fee2a938145e572d522ec3abaa9e120c3f5222a37b04a7eb81a550d8c3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 389.2 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.0a5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 128db461577d1b314af8e4704b0ca6aae6f6364b71611a0b8b8f472f701add69
MD5 6ca9a443f3f37801f9bc9ff2c34d3fad
BLAKE2b-256 55a3b1ffead5826a37eb174920e2b4624363578984359b39d18f8ea415d3c835

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c5842729826005bb7992ee86b1c265d4c44a9f763b472bbed4d434f4f920ccad
MD5 6020cf876419503d869a3e4295f8b6a8
BLAKE2b-256 59147d081c5cd2a3db0ab8cadfce3bae795ba16fe70eb545d9cfcfdde9f59bbd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e89e529602863064f7b0340e0ca2608911551c28141d5485f38441cdbe446728
MD5 0b191eae1ed37819714530e8eec55959
BLAKE2b-256 dec7781f395f9216ecd51ebf42b91b6cde7e1e05cb75bcde5c6a068fb47d357f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9cff141ac82d441ec6b0b064a8c17488e53f74b91d00930a9982f72a95abda65
MD5 f0c7b63c7038f9ac03707ae8ff584571
BLAKE2b-256 ecda3d1a072f41c5dc14d85fc100eeec82ab5353ee53bfafb3fbe7c730d75f6b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3f7b4f3133723768eef1ebbc1463b5075a40131dfb9fa07d3b1835ffdaaf43f6
MD5 750779f280e0df7f7f4857836578233a
BLAKE2b-256 bad8f326ede1ba8ea5606d675fdd6ca224c7a78e14ac6db4551b1c7e071a2dce

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2485f662d27b3af0804d69fa46f862a40cb6bdf375cc7b491690c3208b93b270
MD5 df7e3d5b394db6b6889768f929d66686
BLAKE2b-256 9720ce20609356aed3e68106fd63f4be43b58727d803e74fb7439014a50efd5a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 8e93051c57c32cc81cb81ebef381d9ef0ddda507e6df786b7e4e83a1dfdc1277
MD5 9d886f831b0c38b8bece13831c280e80
BLAKE2b-256 c44f5c22710cdc575b5d98c41d23e1ba87eef13b1fa7de130fdc18b6b48fddf0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 73d196fa0a19e7852ee33e81e4852c62a3b5394449b19c449ec1f48790563537
MD5 0b8e4dadc2e4e735a694a00b17ed1fba
BLAKE2b-256 528d413a1989a8679566544250e4b2885b5e0b5bb65a81ecadedd28cb4713725

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fd845f66847b57ea75014b8b83ed0688bf4f88f5f20b1c643086948311793be4
MD5 0bfe9d6f47515a40feeb00e5b340d262
BLAKE2b-256 6fda5eafc8f6ff03c08777c85fe61f0e8d9e28d4e1e1a911b728ebf1dced4374

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c88934d49c4a4f6681dae162b1107f88b46a47febf68d46129b26704097b03bc
MD5 bf7af09dfe593d63701ec3e0f5371e52
BLAKE2b-256 08580455a834cdc0a3dc7af8b720914f02869ee2bb9f5f7c5114ccaf9e01475d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 365336ff9ad0ede7c9b47d17e7e3b1d681971302d41e0bceae3883327664762a
MD5 0bd2f7d4f8d14c3cc5e67502144aad4c
BLAKE2b-256 bf0fb77a30b2988c0f2b81bb7214cbf87fd97015f3210c730a2f05f63e7b3823

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 676bbfbe0288631fa892a3f7ba0383de6f0f0a8e30024962db4f7d90577b690e
MD5 70a2b6df2e6b3dd2ce96dc7353fbe178
BLAKE2b-256 95c2105396dc56b1467676e5ba0dfa4916b129bc62926299c4c42b0446808508

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f3c39d06b420fc861f9346cf64234a2361f2ed448c98a8ad6da0d34b60d7bc86
MD5 2268b640c237cd88432d69721ae20b6c
BLAKE2b-256 737dd93bd6272cf7c4505092fb29a6af2d1b6932f1a040879d8c9aeab1cee3a4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a5-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.0a5-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 9c8fb1a2ade8cadc928b6fbe8e14e679f53ea1f94f838ec4c2ba4bf1fea6cd0a
MD5 257af348538575789fb19e7eb1d75d33
BLAKE2b-256 e8a32897128140cc1d3737cd8ed53718e9ae325719699e0eabd1497c92b34777

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