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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

File details

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

File metadata

  • Download URL: multidict-4.4.0a27.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.0a27.tar.gz
Algorithm Hash digest
SHA256 b6f45bf36619efa524e048d1423b97658f877809c1d7ee7994241a6bd41d013d
MD5 c424876783fda242fb0cf01ed6386268
BLAKE2b-256 a19805da88b3fa5501d612a91b17a6b53334a76286d48bc8ebc802ce2ce61a2a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8babf9cbb6b2ccedb46221fb24a8cc86c378c74aa761e9b551448f2d69ed2bcd
MD5 20f075408e56a89e3ef523e146b39ade
BLAKE2b-256 b89038a44e535b6199fa6ecbb1d2fd1a98747ffbc1cef61aa041c868e3f8c33e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 bb51d988c8b16fa947967ce12d12c235ac6c4a2e2792d5ed0484988eb45b5146
MD5 37c571ea9fc4ae8fb50c9d9ea5634a90
BLAKE2b-256 365038d458e030331ab9cd0ca4aa1d6e157eca309d8cbc6790acf7110bb80520

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 28f33e2affd54aec0967c14faff10f795e8f89625c64a0a29656e01f5478b1f0
MD5 74f11a04b08bc3d37ad2f5f9b46566ee
BLAKE2b-256 c799a8097ad91ae021ebd8b9ae66328255d9db28b64188424c29b721f31c3c05

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 120398c1e7bce62f97fc67a031bda41e8c52253759b236141803a7032d3a8ea0
MD5 0721da21dac953a4e6d5c35679e9a511
BLAKE2b-256 3e34ef14c448eecec7af026a4e2d69d08bb37c292ea98950c0f27351a83daae8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 eab2ab6441cdd72012067c7a056845b5274606af89bb6ef06d81f74ac1a781db
MD5 b7bab8bd8bc82e7e241e1905b78bdc83
BLAKE2b-256 e37433fbfc0278602820eaa70529f9eba8437a743cb1a893a03f57c9f73ad4d9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 ec32741a9d26ae94f34819a052c6d40148384984b5b18322b4edc6681d6c1b7f
MD5 e53020dbf0068e01a2a80341ddb0843d
BLAKE2b-256 0c70975efd8595f24144f1f1a6032503fbad000fcc6b1b36cefd1b3caaddf39a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 00e3e7e55b73f1e26822e9b5c6fb92d04beb4e484e6a651db30e97d8109ca17a
MD5 1191d8bf47d7f34037bbfc4248c3b406
BLAKE2b-256 63a82a6d3e898ab3c147bcc252d831c79933869e8a46ea117c321569bd772716

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a27-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.0a27-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 059ece73c071f032525f634e3aad34afe16275d18355470c0a2af61737986883
MD5 3dd235df7c350b4750d8a82af330d566
BLAKE2b-256 27c26a2c619a35bee691c2624d6ec28b3bb4de63cbe5c770da0742c652e05d4b

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