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

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 5ab96d6f6d3229eb57178c75dd2feb921c34c38ae25a6ec82d070b93ed984a6c
MD5 ff8f4e36c8c0cb1e5e3cc85e9115cf96
BLAKE2b-256 09ce22fc82db5ccc113f85ce95cdff8309155bc22153ab8037aee2395565d325

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 2e018acc65452355a7d99f5f8a1b68a008173f30429d81b6c0f308e06e9fce62
MD5 481fb568d7cac96e4f6e5a7c695d6d43
BLAKE2b-256 90e52dee81bb0e0bc5f23f4e98a5e9e60348da04c15be32c7aeef2438a0efc44

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a6-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 4065b1ff99bab13cc254b10ad0d8f596d82ea8560ed928d152c68e27798da3b8
MD5 ff70546ce0928b320c78ca6ed576c8bd
BLAKE2b-256 6a0a21b2fc139667e5ad78838ea69427998a4de3d81e68e56c015b47c031d99a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for multidict-1.1.0a6-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 4d3455377a81e2ffa31fb2b2ea263d0936192c2713565ac2353f31b2ebd1cce8
MD5 fbe68df8bf3c34fb9c484c15d05b21e1
BLAKE2b-256 0ebf365b3b8edd3a597e3645bc322179b9a41f90bbbadd4da30f4581dff068b0

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