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.0b7.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.0b7-cp35-cp35m-win_amd64.whl (132.4 kB view details)

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

File details

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

File metadata

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

File hashes

Hashes for multidict-1.1.0b7.tar.gz
Algorithm Hash digest
SHA256 ac5fbcbd3defb3aaf4c5b67fed778082a68a95073d0bbca4d8f0903a23d8a0a1
MD5 fc7b839c7d0430be6c26de0fcb693cc6
BLAKE2b-256 c0b03e320b2db6be13fad4be5a4b1634860c1ff219e178fe56f96f2eac7da1ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 d925cbbb0cbc4c26acc4e7f8e836180340d2bc16e410a997067251b75a006b45
MD5 b3fceb0084120c72a24a2f1bc5491a4c
BLAKE2b-256 1b6e890140fccc8ce1d16525f4999d0808f3b5eea84f69364d9483e2b37cea38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 f2167ecb9239784e2b5f536179edb607b36d305300679b51af8285ec8d88baa5
MD5 3f366f8aab503754496a49a2f66ed549
BLAKE2b-256 2664d1252b5fbae5e2544383b7b7ee99b2feeae2f4aeacaf7cc65550050dbae0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b7-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 1101cff985b5fd6b0ea078b566e64fc4fe31cafc5d1f4d164f84c5309d96c26a
MD5 63e486633c17f719f3ec32e9ed4ef602
BLAKE2b-256 79908818a4173b23708984fb5f37b0f17856612b98665a9bc771ebfaddef0263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b7-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 c3073fcfe1eb9739443ee646512a7cd0ebe0bb4d04f0417b089aaf57bd37a0d3
MD5 e24cf6e503e78b53f12e80285f439118
BLAKE2b-256 059ddf10dffa1aabdf7438317c5304097304140addd39ac0d65e20c0b2f94ea4

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