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
Built Distributions
Hashes for multidict-1.1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9748da96ce765cfb94f9d597a8c06a342fa1a181d5662ac248e7df06656552e8 |
|
MD5 | 83feaada1777b8815438c6b6487aa9e3 |
|
BLAKE2b-256 | 3178c52e9720a837d955e32741d0d30059c2419ea282446f5cee82b432c74260 |
Hashes for multidict-1.1.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d3ad25c6d9e849682ade28c591ee993a119172ce153026eb7596d442fc6947a |
|
MD5 | fc0dc4035abb59a5498ee958a70a1e8b |
|
BLAKE2b-256 | 6b80a08582c581899c20b40afd09dcfde7dde49068c1a4788a59e2b8b8694b87 |
Hashes for multidict-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 044e915cec4871f30865ed9a8c44d845bd3f2f38f54932de2051322ee14ea561 |
|
MD5 | 00da740fdc663a63d76242188a84882a |
|
BLAKE2b-256 | 2dc678e2fd8888cefc70d7319fe6ecbd6a174defc9a6188530d1e40aa2d556cc |
Hashes for multidict-1.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c765e21e4bb54bc7b2d805d1a2704a1b7fc735e2d1136b8c7c99de95c4d0bc67 |
|
MD5 | a75a9145fe0ab0f9d2baf4869bfdcc54 |
|
BLAKE2b-256 | 21e5e0965e3152ff12ca1175e14b23d5263c73a441bfcee2beab64e98c5fdfab |
Hashes for multidict-1.1.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45909b0ba17f8b595baf238e4929dd9643a7e71b7a2e4bf42803cad815a3f7af |
|
MD5 | da0964ec721fa506ee5a53015243c919 |
|
BLAKE2b-256 | 274ee9fe3399f8ccb42b1a366272b0d84ca5a39523346f809033087469173427 |
Hashes for multidict-1.1.0-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a082f86dc0dbd65b46d72266902223e6627ffd3d50975cadca1a8ead9eb71b0a |
|
MD5 | fb7047872bfcd115b995ffbea3b7abce |
|
BLAKE2b-256 | 6ddf9bf0fc221cb899958b74c9a1161b0bd7d0088a7fde7808e676415f2d4245 |
Hashes for multidict-1.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9089267feab7a1cc12d2aa619754170405b43f809a8f2c19d45200e652d866 |
|
MD5 | 2c55f87f6d9fd30a6f58a8291ffd779d |
|
BLAKE2b-256 | 46a4ac28caf478dbf6ef05979e030401c7facc194b468dc48211d9c3219c022f |
Hashes for multidict-1.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0961c144e99387e6d531fd9354af10409ebeb8e5634ff610d16a5e3f5ba91c8 |
|
MD5 | ea30b6ea8ba9aa23dfcd49b8be166cb2 |
|
BLAKE2b-256 | d46fd463592bc78434a4ffb06f70ff03cedaa8c4b95f4c7d9962e06cc7f9b656 |