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.


*HTTP Headers* and *URL query string* require specific data structure:
*multidict*. It behaves mostly like a :class:`dict` but it can have
several *values* for the same *key*.

:mod:`multidict` has four multidict classes:
:class:`MultiDict`, :class:`MultiDictProxy`, :class:`CIMultiDict`
and :class:`CIMultiDictProxy`.

Immutable proxies (:class:`MultiDictProxy` and
:class:`CIMultiDictProxy`) provide a dynamic view on the
proxied multidict, the view reflects underlying collection changes. They
implement the :class:`` interface.

Regular mutable (:class:`MultiDict` and :class:`CIMultiDict`) classes
implement :class:`` and allows to change
their own content.

*Case insensitive* (:class:`CIMultiDict` and
:class:`CIMultiDictProxy`) ones assumes the *keys* are case
insensitive, e.g.::

>>> dct = CIMultiDict(a='val')
>>> 'A' in dct
>>> dct['A']

*Keys* should be a :class:`str`.

The library has optional Cython optimization for sake of speed.


Apache 2


* Initial implementation

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
multidict-1.0.0a0-cp34-cp34m-win32.whl (120.8 kB) Copy SHA256 hash SHA256 Wheel cp34
multidict-1.0.0a0-cp34-cp34m-win_amd64.whl (126.6 kB) Copy SHA256 hash SHA256 Wheel cp34
multidict-1.0.0a0-cp35-cp35m-win32.whl (119.7 kB) Copy SHA256 hash SHA256 Wheel cp35
multidict-1.0.0a0-cp35-cp35m-win_amd64.whl (126.9 kB) Copy SHA256 hash SHA256 Wheel cp35
multidict-1.0.0a0.tar.gz (309.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page