Skip to main content

A fully generic MultiDict implementation for Python


Documentation CI Codecov Ruff ty uv Publish PyPI PyPI - Python Version


multicollections.MultiDict stores multiple values for the same key while preserving insertion order. Its API follows multidict, but keys can be of arbitrary hashable types.

Installation

With pip:

pip install multicollections

or conda:

conda install -c conda-forge multicollections

Usage

from multicollections import MultiDict

d = MultiDict([("a", 1), ("b", 2), ("a", 3)])

d["a"]
# 1

d.getall("a")
# [1, 3]

list(d.items())
# [("a", 1), ("b", 2), ("a", 3)]

d.add("a", 4)

The multicollections.abc module provides abstract base classes for implementing other multi-value collections.

See the documentation for the full API.

Metadata

Release files for multicollections 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multicollections 2.0.0
File Size Uploaded Provenance Actions
multicollections-2.0.0.tar.gz 10.7 kB Without provenance Details for multicollections-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multicollections 2.0.0
File Interpreter ABI Platform Actions
multicollections-2.0.0-py3-none-any.whl Python 3 none any Details for multicollections-2.0.0-py3-none-any.whl

Total release size: 22.8 kB

Release files / multicollections-2.0.0.tar.gz

Download URL multicollections-2.0.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
923b232d4f0b65466279d7a5c986a0d1a251dcb546b95597df0483c2eef3fe35
BLAKE2b-256 checksum
How to use checksums
b45840f20f664534a3df1803c71cf2620b56c9be3efe09f1be5a9defd6850f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / multicollections-2.0.0-py3-none-any.whl

Download URL multicollections-2.0.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee92abca47e445e7655b5ac4bd864bb9f95a3e49e18d3cbe48a1077204dc4ab5
BLAKE2b-256 checksum
How to use checksums
2930fff5113c9c8454911545e93cc6dcfffc61b2c550f4b71c0257f47ee86fff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for multicollections 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page