python-multidict
Port variant v15
Summary Multidict implementation (3.15)
Package version 7.2.1
Homepage https://github.com/aio-libs/multidict
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 13 NOV 2026, 13:25:52 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: Read The Docs build status badge :alt: CodSpeed :alt: Python versions :alt: Matrix Room — #aio-libs:matrix.org :alt: Matrix Space — #aio-libs-space:matrix.org 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. .. code-block:: python >>> 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. Both the C extension and the pure-Python fallback are optimized for free-threaded (no-GIL) Python as well as the regular GIL build, and their performance is in the same ballpark as the built-in dict, typically within 20-30% for common operations, since dict itself benefits from per-version interpreter specializations that a third-party type cannot hook into. See the [benchmarks page ] for the full per-operation breakdown of the C extension on both builds, and the free-threading overhead figures for the pure-Python fallback. 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
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Download groups
main mirror://PYPIWHL/9d/96/1aaad0e5df33f1f5af21775c411349c0234a6edd581ea403bc81919a6eab
Distribution File Information
08ea94663d9e7c25d14d78222f7aee906c472d4837766bec62477c38f6e419dc 28145 python-src/multidict-7.2.1-py3-none-any.whl
Ports that require python-multidict:v15
python-aiohttp:v15 Async http client/server framework (3.15)
python-yarl:v15 Yet another URL library (3.15)