Skip to main content

multidict implementation

Project description

Multidicts are useful for working with HTTP headers, URL query args etc.

The code was extracted from aiohttp library.

Introduction

HTTP Headers and URL query string require specific data structure: multidict. It behaves mostly like a dict but it can have several values for the same key.

multidict has four multidict classes: MultiDict, MultiDictProxy, CIMultiDict and CIMultiDictProxy.

Immutable proxies (MultiDictProxy and CIMultiDictProxy) provide a dynamic view on 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 assumes the keys are case insensitive, e.g.:

>>> dct = CIMultiDict(a='val')
>>> 'A' in dct
True
>>> dct['A']
'val'

Keys should be str instances.

The library has optional Cython optimization for sake of speed.

License

Apache 2

1.2.2 (2016-08-02)

  • Don’t crash on {} - MultiDict().keys() and similar operations #6

1.2.1 (2016-07-21)

  • Don’t expose multidict.__version__

1.2.0 (2016-07-16)

  • Make upstr(upstr(‘abc’)) much faster

1.1.0 (2016-07-06)

  • Don’t double-iterate during MultiDict initialization #3

  • Fix CIMultiDict.pop: it is case insensitive now #1

  • Provide manylinux wheels as well as Windows ones

1.0.3 (2016-03-24)

  • Add missing MANIFEST.in

1.0.2 (2016-03-24)

  • Fix setup build

1.0.0 (2016-02-19)

  • Initial implementation

Project details


Release history Release notifications | RSS feed

This version

1.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multidict-1.2.2.tar.gz (90.7 kB view details)

Uploaded Source

Built Distributions

multidict-1.2.2-cp35-cp35m-win_amd64.whl (134.3 kB view details)

Uploaded CPython 3.5m Windows x86-64

multidict-1.2.2-cp35-cp35m-win32.whl (124.0 kB view details)

Uploaded CPython 3.5m Windows x86

multidict-1.2.2-cp35-cp35m-manylinux1_x86_64.whl (343.1 kB view details)

Uploaded CPython 3.5m

multidict-1.2.2-cp35-cp35m-manylinux1_i686.whl (315.8 kB view details)

Uploaded CPython 3.5m

multidict-1.2.2-cp34-cp34m-win_amd64.whl (133.6 kB view details)

Uploaded CPython 3.4m Windows x86-64

multidict-1.2.2-cp34-cp34m-win32.whl (126.0 kB view details)

Uploaded CPython 3.4m Windows x86

multidict-1.2.2-cp34-cp34m-manylinux1_x86_64.whl (347.1 kB view details)

Uploaded CPython 3.4m

multidict-1.2.2-cp34-cp34m-manylinux1_i686.whl (320.1 kB view details)

Uploaded CPython 3.4m

File details

Details for the file multidict-1.2.2.tar.gz.

File metadata

  • Download URL: multidict-1.2.2.tar.gz
  • Upload date:
  • Size: 90.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for multidict-1.2.2.tar.gz
Algorithm Hash digest
SHA256 2fc5fab0dd14d4b8193bfc003b33aa14e0d0cbc97d51ba58aa5fd52b1cb9a6a3
MD5 1bc90b6536c0aef1546a8fb2f6ec7ff5
BLAKE2b-256 fd5b3dd32b8e53703ff7a27a72e9a118e7f78c14a171554ec8c99dd4759c4018

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 92cd801d90d3f5334ed51c5c032916b4ef3d7c811d806609078dced21c450034
MD5 96924b90b575d2c1c829ffe151df056a
BLAKE2b-256 7f8e4cec6e3f56a4c2a3b1286941a07fbce742b457aa7e8c620c4bc915d3c7a8

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 24137fc726ee7f719ec3c917948dc53ffffa8c673aab28a7c1a967b38a074fb4
MD5 fd93a5cd85bcf9b7e825fc900804237c
BLAKE2b-256 b7ba27de4ba1d97d6e13154217c597b5ee4afde3f34ebb5b3c8b952ac640df52

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d5bdc0dc3b92a201ef1838eaae40cde04fdb990d61147296cff103983a29c79
MD5 996893260d8f6bf742e35032d01e3c52
BLAKE2b-256 fe641a91a6d487f3a8506eb54d249137d96605d50da731ec6166c0bc21bc7436

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 174c11f30b9d8b7cc62088abc2a4291062d9ed6890a55fcd4736e9273c678970
MD5 b47eb251cf611cdef1e1b70025366cc0
BLAKE2b-256 12ffeb4251a940fe5a82301becf84ca96f151d55006ef9b733af288698be0eb4

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 22389248c76c74cf5f22bb2470970bebc52aaca0b1cf57ea18adf133bb5cdc39
MD5 f3868640db6d74567b339bcfbe6ca3a7
BLAKE2b-256 5e61210273ebe98a6e89535933b20c222b962268aecdc2a5e1fea027b94b8aa0

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 d5f19fc9db309f8de4f5036a77241dfda74af2325463486d20d1a150fc7c064b
MD5 b4d0c8175b864cc9e43a31ede151fb06
BLAKE2b-256 f9c7e190d2535fe09093525084076e25b10f8b2000d537f5d1c2ecc026dcf047

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2c3e068df0cd3c8eeef8253139a529af4083cbecb7a6c886c8687625e454688b
MD5 f9cc77ce6105f9b9ced574bbf7769df4
BLAKE2b-256 da35e85fe4517c65a0167208525fdc294054997d011d1a644b291a1c21d93656

See more details on using hashes here.

Provenance

File details

Details for the file multidict-1.2.2-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for multidict-1.2.2-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 92ed1f59dacb9cf51b49ec0c95f67d5b9be4b47b0ccc1ccef05b021bd2ec5e2d
MD5 c8ca5ca89acf5ba6e9dd0b472ea3920c
BLAKE2b-256 922a3bd07125e23f693a5ecc9fc021d79c7405c98f6c078b3f27c1a8c2be05d7

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