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-06-04)

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

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

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

Uploaded CPython 3.5mWindows x86-64

multidict-1.1.0b5-cp35-cp35m-win32.whl (122.1 kB view details)

Uploaded CPython 3.5mWindows x86

multidict-1.1.0b5-cp34-cp34m-win_amd64.whl (131.6 kB view details)

Uploaded CPython 3.4mWindows x86-64

multidict-1.1.0b5-cp34-cp34m-win32.whl (124.0 kB view details)

Uploaded CPython 3.4mWindows x86

File details

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

File metadata

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

File hashes

Hashes for multidict-1.1.0b5.tar.gz
Algorithm Hash digest
SHA256 085853a179121d2d95217d3586c5ff8fdeb489e09759a561f89c51091fe65b4a
MD5 0cf761b82ad91f76d7c24f7bd0de8383
BLAKE2b-256 f2e5bf1ddea8cf16186ae435a8afa2c2c1d0a46331b7293648eda1f7aca1b329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 e4bc12027f2541bd37dd9f3800aa233a862e2c6358bb5392ec4346c5eebd0d85
MD5 a18c456d3f49af5997b80f180c2ef0a6
BLAKE2b-256 5f907e541f82bd01c8cbc6a2c6f3ea14ac9500276835ae1dddc097d38954aa12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 7e72b48cea2d15a11a19d9c3540656ff3063a7c680f4582a45255262e9dde5af
MD5 d56065670a17706c234717846b8dd0e6
BLAKE2b-256 f88ecec5f4e92050a93c5b6c39f9cf6dea0f2b55aad98461d9dccdc1a9c726a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 4368e498ec78e376df059766cfa15b7914b2529894045c978a9a852c37708cda
MD5 51a7243285a82d0df2af49d647193a04
BLAKE2b-256 17df8978d8a8dad224b65d6e30fc1f802af5d0ee3fe5f18fa689bd28fc12e7d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0b5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 00f82f0ef47508aed4b489838209251d92c6ba89e441b6f5a16d3c3dc9683a73
MD5 f3f83f4fc676b0427c11919c6357d6f3
BLAKE2b-256 62b20a51c11e2b824c3aec78f3f9870d296d15a80b38dcb246b0edfc1ba00e6b

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