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 Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multidict-1.0.3.tar.gz.
File metadata
- Download URL: multidict-1.0.3.tar.gz
- Upload date:
- Size: 90.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f7f237f5faf5c857fb56ff7437181aa8135b3dc591347d1c3a497afdeed104
|
|
| MD5 |
de73233f7e2ede60d513dcd84b20a0b8
|
|
| BLAKE2b-256 |
f359091af1c241e1157e3060f2a36f2b1677f11bd11d107cf5ad0abc40db9ada
|
File details
Details for the file multidict-1.0.3-cp35-cp35m-win_amd64.whl.
File metadata
- Download URL: multidict-1.0.3-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 127.0 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0136e49874d1351347b4e650436672ce4014e1ef7c54ccefdf18a1fd74b0326
|
|
| MD5 |
f777b7158285fc40ee7264c48b405004
|
|
| BLAKE2b-256 |
dae18813ae92da1a63b836ceba88b057d728be4c3320135ddde8694a378f184c
|
File details
Details for the file multidict-1.0.3-cp35-cp35m-win32.whl.
File metadata
- Download URL: multidict-1.0.3-cp35-cp35m-win32.whl
- Upload date:
- Size: 119.7 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44dcae0cd1c30db6d9a364530d0fd715a2d0a7ca136a0d69d301e982f69f0cd5
|
|
| MD5 |
aacff75655f45eb4d1465205639a760f
|
|
| BLAKE2b-256 |
94e12d4a8a3df76afeb83e314df1b68b01e26a58af159c902c87b5ebb3c1b39a
|
File details
Details for the file multidict-1.0.3-cp34-cp34m-win_amd64.whl.
File metadata
- Download URL: multidict-1.0.3-cp34-cp34m-win_amd64.whl
- Upload date:
- Size: 126.6 kB
- Tags: CPython 3.4m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da59ce92e266632bd330600210aa130d194ab50cfb4f87a12dbdf2f2379d6fec
|
|
| MD5 |
3c8ed7abba05d1f28c6624d68b111309
|
|
| BLAKE2b-256 |
a81353b3f24e969bdcae7c965230001d5a730797b77a3d1dc749c2a2eb920d56
|
File details
Details for the file multidict-1.0.3-cp34-cp34m-win32.whl.
File metadata
- Download URL: multidict-1.0.3-cp34-cp34m-win32.whl
- Upload date:
- Size: 120.9 kB
- Tags: CPython 3.4m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e762c1e8654ac87eb94b53a4b2a20bbffd6cc8aaa7183f37e596dbea4f8ef95c
|
|
| MD5 |
5078b56cdc5f241031c3d18a8aec1d01
|
|
| BLAKE2b-256 |
29a10f44c9ab2f6e4cfe53b91f6dd46551400c5cffcdd4c1d5226ff9c06d5d3a
|