multidict implementation
Project description
Multidict is dict-like collection of key-value pairs where key might be occurred more than once in the container.
Introduction
HTTP Headers and URL query string require specific data structure: multidict. It behaves mostly like a regular dict but it may have several values for the same key and preserves insertion ordering.
The key is str (or istr for case-insensitive dictionaries).
multidict has four multidict classes: MultiDict, MultiDictProxy, CIMultiDict and CIMultiDictProxy.
Immutable proxies (MultiDictProxy and CIMultiDictProxy) provide a dynamic view for 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 assume the keys are case insensitive, e.g.:
>>> dct = CIMultiDict(key='val') >>> 'Key' in dct True >>> dct['Key'] 'val'
Keys should be str or istr instances.
The library has optional Cython optimization for sake of speed.
License
Apache 2
Changelog
See RTD page.
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-4.4.0a22-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | debb34ab02daa996237dd0dd04baaeb832bba3d229b516dc82c3e854bd4c73ad |
|
MD5 | e37080991358e7880e0e6d0ec2d58bb3 |
|
BLAKE2b-256 | 503dd08e9b9a83bf020c85690f735ed2025c5d4ca72e2229cee4d38b3d7ec97a |
Hashes for multidict-4.4.0a22-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb25954f19758461e67c49992ecafb4d0dcec1b3fbf90fc0b519976f0e7ac494 |
|
MD5 | 4261d22d2b070234e3a2c98c59d2620f |
|
BLAKE2b-256 | b2a5d90f1fcdefcd16f8b95221702e5ba9d059cd6fd14e3730bf9daba94d39d2 |
Hashes for multidict-4.4.0a22-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8e14ac4233fa06b36120495551ce01bda654ccad746421042f82ac7eabb8bc |
|
MD5 | 10fc1ae651ea40f34bf78ff4d3be4c16 |
|
BLAKE2b-256 | 31dd1489549c219b9ad74308525be740022ec9d42e55295f456e675a7f897747 |
Hashes for multidict-4.4.0a22-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244d52dedf2e009d7d97109070837550e5ed781cfc91e5a87f1beed67a661d83 |
|
MD5 | 4c467860347e74a23f3fae7917a6ae56 |
|
BLAKE2b-256 | 574f2cda946d6cac90758f62075259334ecf724fc6d3b59d51a402cda242d430 |
Hashes for multidict-4.4.0a22-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ebbe0db23d62c15db79ecf0f632d90823785548be8f1d6c9f19f73a5ac4719 |
|
MD5 | 6d0c227f0f0a632cedc78c8cab35ada3 |
|
BLAKE2b-256 | de619c3f450efa4ca4f240f2137679b7271f4735839c39378a7b5312a15d7875 |
Hashes for multidict-4.4.0a22-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc6ef863b40c7a36a29862afdeb4e379344df688e3586e79f8a74e1f6e7e0b6 |
|
MD5 | 692c2be649b162dcc504ae197273efd9 |
|
BLAKE2b-256 | 28d1ffc5986d08838e83da80fd5f0d8cb949d42d136f327c0aa78d1263598044 |
Hashes for multidict-4.4.0a22-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd79b969bad4b340653c264d29152cbd64e4312171b39855b665842a5b01e8e0 |
|
MD5 | b783930d9d96a3108f29c13af7931167 |
|
BLAKE2b-256 | 39fd27f563dc5e5595ebb982d0d8344aa184e1b10af82cfbbbe333bc3c06ff02 |
Hashes for multidict-4.4.0a22-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 254275bb82a1e54c8d64e56086a4978d9e5284a7e63b4a502e8500d7582e822c |
|
MD5 | 06e810bb0eac679cec388dbf42563453 |
|
BLAKE2b-256 | 19d6cba38f0422222178cb5db8fa82ec76eb51e1f86ba2481110b2aa540bf007 |
Hashes for multidict-4.4.0a22-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7e0349c4813cc8549df51ed094755c723d3fe95093950c8715d5aaeba29d306 |
|
MD5 | 3ae72dd171404fffd8586b44c0e5db4e |
|
BLAKE2b-256 | e197d2b6c6683126b25df552199ef1089855e75b85137d4c982afeda046fa813 |
Hashes for multidict-4.4.0a22-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1872a93d2dfa2158052a4beff164495ae0a2b89f068679da253929ee261c88ac |
|
MD5 | fc42bfc1b9ac47be56e8353801c1e7d4 |
|
BLAKE2b-256 | b7b765ffdcb93b4ffd50d326fd587286ef6c158798e86208c7b73472a8f64a33 |
Hashes for multidict-4.4.0a22-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0007791426e8177be3808e151d9fb88e2cc66fab30e5bd1aedb47d9c9f721f03 |
|
MD5 | 4e33e68f5137127567c297cdf841548e |
|
BLAKE2b-256 | 681127fec67ce99247cc59a5fe995830c662d1aacc6427b61f3f25d67fbe41c6 |
Hashes for multidict-4.4.0a22-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 335128832a9e2482e26dfa0a78ea0ce8e25366a88c374da0758a243b29270cb7 |
|
MD5 | a157c0115675bed263a30e071f357166 |
|
BLAKE2b-256 | 2b964bd8e8230afbd9cbbd5ff36b02ac78e318fef3a3690b5f7d9ed453024f06 |
Hashes for multidict-4.4.0a22-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fc70d2c526bbc7cf83437242225140d0afd360cdbcea3c9234ae2e3c056537 |
|
MD5 | 8e439dcfcedfc844cbcaae3eb2e8369c |
|
BLAKE2b-256 | 3e039217cdc33187f0f437cf1b80009b9831b2cadeae941f7563083c889d4fd1 |
Hashes for multidict-4.4.0a22-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93bbfbf1ab258c7d54ad3eb4a00f20d7d5fe44d4ea234bd6320b7202c1cb8d28 |
|
MD5 | 2bb8fe1b70b460bce81c9ebc3be7c2e1 |
|
BLAKE2b-256 | 37078776ba41c1fb45e2baf76dd089abd5fcb74414e95ddc65335e1864a2113a |
Hashes for multidict-4.4.0a22-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90c12a460691a73566d32f5059b2c9c4536acffe57136d31d17afbba5b1b35c |
|
MD5 | 3f37e07bbd8ffe3ba41c49a721453703 |
|
BLAKE2b-256 | 7beb448096b5326eb8a503d23dbceca2f3122d78550cc2f1680899a25c347b8d |
Hashes for multidict-4.4.0a22-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 581575ee14e287f77ffea24e0b9ec587f7ece0bec4a895084ddc2043f635574d |
|
MD5 | ca60b7b28e7d7e46bced9b57037c5e2c |
|
BLAKE2b-256 | bb44130a1cd56ad90688af715ba86dd1ffbab18d499a5a51a0f9ff141da8f7c1 |