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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

multidict-4.4.0a26-cp37-cp37m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl (246.6 kB view details)

Uploaded CPython 3.7m macOS 10.10+ x86-64 macOS 10.11+ x86-64 macOS 10.12+ x86-64 macOS 10.13+ x86-64 macOS 10.6+ intel macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

multidict-4.4.0a26-cp36-cp36m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl (246.2 kB view details)

Uploaded CPython 3.6m macOS 10.10+ x86-64 macOS 10.11+ x86-64 macOS 10.12+ x86-64 macOS 10.13+ x86-64 macOS 10.6+ intel macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: multidict-4.4.0a26.tar.gz
  • Upload date:
  • Size: 117.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.6.6

File hashes

Hashes for multidict-4.4.0a26.tar.gz
Algorithm Hash digest
SHA256 70e5026e8c2f20485f3ed1f705d7e7d00622a8923eae2bc879a22a475a1e8a04
MD5 8ec42dc9905c2ca6ad95a0e37ccbc0bc
BLAKE2b-256 e4b66d6d6bf9daea37ef2a97e311d4571152c5bfbe02464653c4399721eb3958

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a26-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.0a26-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 528f5fb73646cdb2cf7b57c2e7498b49a79da5579ea18ecaf379bc33d687c037
MD5 e0d57732e51856cc7ed9b7ed55f7c855
BLAKE2b-256 ed750adcd01d4fc40e5e6127092767791012fec500869aca119f9107b517083f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a26-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.0a26-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 67012df5995e36fd847a0d9bbb30edd75bb875b2e62c9c98793167d768385176
MD5 cffa3c620066c018e852fb02f48fe8da
BLAKE2b-256 8e6e540174cd5774a749972afd49a287e663cf33e36e3fe3e94b20e42df1aa74

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a26-cp37-cp37m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.4.0a26-cp37-cp37m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c038e606d4efb767e8546ad96a9b74a45b3d9a4d60ac11d11e8c290819ee9ae7
MD5 6178d589d8d1a11c463f6325723289a3
BLAKE2b-256 f9002804d134b09489aebfefc09a68b99fc3a8eea764fef5f111623464061200

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a26-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.0a26-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 861e16a910f5ba67fbbaf0ac1d3edae0f97a18c0a00dd2616012641b14052760
MD5 aba00a3a563287ad2f843cdae9372e23
BLAKE2b-256 542f5df6160633d0a6af0d07225e57509fd95985d51590252ad207dee51ce20c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: multidict-4.4.0a26-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.0a26-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 2e2966dd4d60de54626f2290394f0921655bce6acfdc95729c99a7ecc8df5fc9
MD5 dc6734923c01907c9658dc704f688a71
BLAKE2b-256 3330c88d437334a1de9ffc11cce2f9ba188c12f4a61905ac39bea929f5a0e244

See more details on using hashes here.

Provenance

File details

Details for the file multidict-4.4.0a26-cp36-cp36m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for multidict-4.4.0a26-cp36-cp36m-macosx_10_6_intel.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 623c655d2a3ece9b76bd03c30ab1fad4d78305fb3d48167743963dce41d363f5
MD5 f1c3c5246332b05440b9084db8acc36e
BLAKE2b-256 3633d208714597d49a04a6f1b9a55f91bc0fdb98ef2a8747165cc8a629505390

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