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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

multidict-1.1.0a0-cp35-cp35m-win_amd64.whl (127.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

multidict-1.1.0a0-cp35-cp35m-win32.whl (119.8 kB view details)

Uploaded CPython 3.5mWindows x86

multidict-1.1.0a0-cp34-cp34m-win_amd64.whl (126.7 kB view details)

Uploaded CPython 3.4mWindows x86-64

multidict-1.1.0a0-cp34-cp34m-win32.whl (120.9 kB view details)

Uploaded CPython 3.4mWindows x86

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 e48b4694762b507632369dbdc2a5dea9493dea5146e59d8e4e5804c281d521d4
MD5 6488ffa7bdd273e55c7aad8c01886a65
BLAKE2b-256 072b3b6a3d32e12b008deaa3bcc28c6d433b2aa2b4a67f3d07ec830175ec62e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 49a45cabeaf7e7f252f9da039308efe13f6ce6a791c88428b6c9e0b173d33619
MD5 8d00e0bfe949e74351c5230f032b8178
BLAKE2b-256 b63ecf3891a59dab7f76e20c3c2f7ed81194445056d67c6017a66c333c8ea8f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 a44d8800fc9fbd137a0758f4e8d2cc6f09f99dcdaf7edecab965cd41183b6fac
MD5 6c9fff92531306341256f9317e8f95b0
BLAKE2b-256 b2e4332455f8888db2c9b6181161cfbdcfae1663cab98d90b72fe4153dedaae0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 7e3e55b0c63d9c30266bbe8dd5ff5ec97d6ecee658061581035d2a0ffc5b4165
MD5 34972a44cf6d6d9a68d5691d8e8b16dc
BLAKE2b-256 d14b622e21142d98584476c79d3487c8220f0bbc584eb034dc0ac4f4731c7ee8

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