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.0a4.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.0a4-cp37-cp37m-win_amd64.whl (162.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

File details

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

File metadata

  • Download URL: multidict-4.4.0a4.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.0a4.tar.gz
Algorithm Hash digest
SHA256 5d413dcd48e18787e79718eb80e1b386e98523b0b3ed6bd0b9cefce8d18b1733
MD5 4be663fa41d08b6abff8daab2b3bb60a
BLAKE2b-256 79abcd7e137e8534cfe6d38bcfc596acb29962dee4935de0252616f3ff966c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a15cf0a05919c87fe302d73962509fb6a163fd7bfe56aca5fb95654d111f9bf1
MD5 fcd41487bf336c10172fd0dcccdcb61d
BLAKE2b-256 cdb55be7c3cee86935a27ceb74cfdd6b530177a07cdab3d137b6c86812558096

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8dbed8b422ad84e91425d72652c3f978b328ff23317db0fed8517759ed617029
MD5 2264f8a83c0b649ccaafd23f48333871
BLAKE2b-256 eaa2afa93e88363d27744678802bca64d754d32ae2d666714cf35ac5e0bdcc74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6aad6bb94fa79cfeaf4ca146f8467ab87b97994086b6a205a3f073e538f3e395
MD5 77cfa93d0018dc47bfc507e8870aef10
BLAKE2b-256 4c62c32a3c865f7af5f9bd34bfec1425522666e10ad2bcb5e94756b02af9852e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 40051049815a2e071c1db1ac55b3e733f7c2005a1e708028a484b8437d06ba38
MD5 fb025f92f64e7093bad2f9a11db20690
BLAKE2b-256 86cc50cc3b7128caceeac6ad94fce57fb17d75f4f90e30801050a9257ef27a60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 34e6f343cb6c7cc9489ce2010a3eac144de26c637afef820f2eccc1a2e84b131
MD5 5c0786a7081e01cd945f74ffa3ae4dcd
BLAKE2b-256 6e4c7bc0c3456c71581aa3d9d27f982ed7dd22f744aa4a3a4eef1f767c9da235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 836877ad724e6723d067580cacc8ba7bdaf46242279083edfbab586b130ad2b6
MD5 22706e0a659e91d853c054a03f5b7ecf
BLAKE2b-256 8aaa31cece1df4b495a66c0f70381afe13e61a63e34fb81a0e8cfdd2a7b0e484

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d7189aba2340b1280a08603ebf1ab9d9f4234cadabb09301b6a431b1c0de96d0
MD5 f2b5b3a186bfa4bdd6e379102990b0e2
BLAKE2b-256 d15251e383bd84709d3326edfe1a3c81a582e986daaf2a7ef44de75f59be0757

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multidict-4.4.0a4-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.0a4-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 3155910bcd2933fb86f791c3816b89ac247d22875886bcb07529bbc893b29b31
MD5 a6c820dcd2ad7f36b9aa3d9c8929110f
BLAKE2b-256 e544067965c9457acbd85f1cdbea02cf19e93391bf1fd8ca3b7c1d77383a68ee

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