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.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

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.1.0b8.tar.gz (89.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

multidict-1.1.0b8-cp35-cp35m-win_amd64.whl (132.4 kB view details)

Uploaded CPython 3.5mWindows x86-64

multidict-1.1.0b8-cp35-cp35m-win32.whl (122.2 kB view details)

Uploaded CPython 3.5mWindows x86

multidict-1.1.0b8-cp35-cp35m-manylinux1_x86_64.whl (336.4 kB view details)

Uploaded CPython 3.5m

multidict-1.1.0b8-cp34-cp34m-win_amd64.whl (131.7 kB view details)

Uploaded CPython 3.4mWindows x86-64

multidict-1.1.0b8-cp34-cp34m-win32.whl (124.1 kB view details)

Uploaded CPython 3.4mWindows x86

multidict-1.1.0b8-cp34-cp34m-manylinux1_x86_64.whl (340.4 kB view details)

Uploaded CPython 3.4m

File details

Details for the file multidict-1.1.0b8.tar.gz.

File metadata

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

File hashes

Hashes for multidict-1.1.0b8.tar.gz
Algorithm Hash digest
SHA256 ffdc993baae0c9c09f0216f112d98f2191910d18af84ce2ba0e066810e84ddc3
MD5 92107f59dc7db48b5fcab84c34dc0f22
BLAKE2b-256 ff3ae96ffb6fee579ef98ed34ab8e21e0dc3aea731b653acab37aac3871dea7d

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 ec4199b536669126951d06f7cdb4935557042bf74670482190e847de49ab4a31
MD5 43cdbe3bb79eaa4861ca6ae1c6dd7992
BLAKE2b-256 2a3a477d144bde6cc259daf827301437ed6e4ebea84e4b2cbc8434b0ba93b531

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d2362536e18067b8f7b6a46b8e852890bccdf5220acce11b061de722ed0e46ce
MD5 650f7a484cb86608e90d4a4973564250
BLAKE2b-256 83f0470e8cd745cf909e62ad9b253d56528f95eba3a3430bd972c12b48b34d63

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1bbaa2f2dcfdd3c88ff20a88927f42a444cf26ccfced9c030d19f6a33c87cdbe
MD5 b4a7779091c12fd3af0b097de53d7967
BLAKE2b-256 28a0b377c2d6af514f349ca76898badcef5d45ff4a68a0f65d894541f3ec966d

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d7c2acc02662ca29ba15917bab122011700749ff4f3c35c4c98d55a2f3033100
MD5 c14c881c889b3f93245997d271c24e8d
BLAKE2b-256 47eed9b279c8388b0c31efa8f10bafb1cb481ceb0aca12ce8c43024de8f6ed01

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 420d8dac4ef00a80055ae985a268b84896040a6c588bedfcab918fec37c71f24
MD5 b45e488db199b807c96792adac4ad312
BLAKE2b-256 64388c508cd50f64959dc04328b0ad849e3be48d598fdadad2dd2a958b02838a

See more details on using hashes here.

File details

Details for the file multidict-1.1.0b8-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for multidict-1.1.0b8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d3b470e290c884e7efb54246039752c94d22f0ea4e3afffe24978e213634ff78
MD5 a19b1bb5c0e78f25c711b888c70b9b1e
BLAKE2b-256 239989638a2ed9ca77bedea64a0054045f7b019e87528de3d7e2a10153f6c211

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