python-multidict
Port variant v11
Summary Multidict implementation (3.11)
Package version 6.0.5
Homepage https://github.com/aio-libs/multidict
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 03 FEB 2024, 15:41:37 UTC
Port created 10 DEC 2022, 14:08:04 UTC
Subpackage Descriptions
single ========= multidict ========= :alt: GitHub status for master branch :alt: Coverage metrics :alt: PyPI :alt: Documentation :alt: Python versions :alt: Chat on Gitter Multidict is dict-like collection of *key-value pairs* where key might occur 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 them to change their own content. *Case insensitive* (CIMultiDict and CIMultiDictProxy) 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 C Extensions for speed. License ------- Apache 2 Library Installation -------------------- .. code-block:: bash $ pip install multidict The library is Python 3 only! PyPI contains binary wheels for Linux, Windows and MacOS. If you want to install multidict on another operating system (or *Alpine Linux* inside a Docker) the tarball will be used to compile the library from source. It requires a C compiler and Python headers to be installed. To skip the compilation, please use the `MULTIDICT_NO_EXTENSIONS` environment variable, e.g.: .. code-block:: bash $ MULTIDICT_NO_EXTENSIONS=1 pip install multidict Please note, the pure Python (uncompiled) version is about 20-50 times slower depending on the usage scenario!!! Changelog --------- See [RTD page].
Configuration Switches (platform-specific settings discarded)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:standard
Build and Runtime python311:single:standard
Download groups
main mirror://PYPIWHL/fa/a2/17e1e23c6be0a916219c5292f509360c345b5fa6beeb50d743203c27532c
Distribution File Information
0d63c74e3d7ab26de115c49bffc92cc77ed23395303d496eae515d4204a625e7 9729 multidict-6.0.5-py3-none-any.whl
Ports that require python-multidict:v11
python-aiohttp:v11 Async http client/server framework (3.11)
python-yarl:v11 Yet another URL library (3.11)