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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

File details

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

File metadata

  • Download URL: multidict-4.4.0a33.tar.gz
  • Upload date:
  • Size: 121.4 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.0a33.tar.gz
Algorithm Hash digest
SHA256 4c5dbae32cb5aa9247e0d0364cb5d9cc8cbd90518bd8bc0e338312ba4b50456c
MD5 f8f22ba9c56aea6006f92e8df41eaec1
BLAKE2b-256 2060c410b0b89be56c3c88cfd05281fc4b3955e4a9d5307f900490566ac9ddcd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6a2c69649c6912740eda92a1c61dfcdade3d33f3f30e88cf65847add02f744ab
MD5 94231a29a7eba39587fb82f1d7c5f816
BLAKE2b-256 27a0df80d5c5ea3875abf08712a8fc7f1d839a0032adb8c8b215b0706aa176a6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 9183b45c6a6cc30d65650e387666cd612d82b81e5742f1a8e7ab18d7a2a0c349
MD5 785ca9954e427f73b09e267109d053a9
BLAKE2b-256 2697ad7fa1a46e8cfe9499fe081e47a77e8ab40aad825c589840d66117d3fa2b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2aae22acddcf79aa566866eca2c28c55decbe81354242b66622c60ee464d948f
MD5 27f14a0ce8fa38e6c9056975e625c1d1
BLAKE2b-256 fcf1d7be56cd61f7c73f0959af4578c539de3a1fd4c8078442e43c2a33d37ec7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 05d8233fd84ba0802ce440aba5738ef8299c4c16b6e22da654f0f9140ed25320
MD5 a8f1d8cfcca0abbae6eee5ce48efea1a
BLAKE2b-256 5ce3fa6f23362eb9a79d512591bc4000531b7bf62d137f8a889f4bfa93ee0aeb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 67fe765972c3d9d18e577dc52e3a2458066e7f676f55441537729b0482fafd8e
MD5 2618a54e0a20e59e8c1fecf476203717
BLAKE2b-256 aaec415f40c2e5f50096465651b1e4ea59634400ad3b8f06a58ddeef91343884

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 ae99d933e2e0ee588ccb907c7dd00f539f8c7b1f08f9fd90d9c8704d687745e8
MD5 b7ed3ee117e44d62808a77f97f908c32
BLAKE2b-256 2d40fab8aceb250e76bb423f813362990c4c3df5aecaa101162099cd77fc23b9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 031da9084aaf7df56763f0a84e587fb2e3c9cd3599a16827dcad4c7ad99f9543
MD5 22a7a0f603e4f8a07994c67b4efda635
BLAKE2b-256 6a57a6de3f0bab114eab0388aa502b62ffc2f8b8de3694e87e60a16e7d6e35c1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a33-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.0a33-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 fff93d1d47749a410ce0927d48d6a12e2f48ddc8af5f87f7cc526b77661dd8ad
MD5 465f0ec142cec404efcb7f60a8159e5e
BLAKE2b-256 628c53d8a44e0d1365c37d3acaef676eb1fa666b6961c6a07d14d6cb17c53d00

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