Registry / serialization / multimapping

multimapping

JSON →
library5.1pypypi✓ verified 82d ago

Special MultiMapping objects used in Zope, currently at version 5.1. Provides ordered and unordered mappings supporting multiple values per key (like `NestedMultiMapping` and `IOrderedMultiMapping`). Release cadence is low, with occasional maintenance updates. Requires Python >=3.10.

pip install multimapping
INSTALL
IMPORT
SIG · MULTIMAPPING
M
multimapping
serializationpythonv5.1
Install
21.9s avg
Import
Disk
16MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 21.9s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MultiMapping
from MultiMapping import MultiMapping
from multimapping import MultiMapping
Base
from MultiMapping import Base
pyMultiMapping
from MultiMapping import pyMultiMapping

Basic usage: create MultiMapping and NestedMultiMapping, add multiple values per key.

from multimapping import MultiMapping, NestedMultiMapping # Create a simple MultiMapping mm = MultiMapping() mm['key1'] = 'value1' mm.add('key1', 'value2') print(mm.getall('key1')) # ['value1', 'value2'] # NestedMultiMapping stores keys as ordered tuples nmm = NestedMultiMapping() nmm[('a', 'b')] = 1 print(nmm[('a', 'b')]) # 1
Debug
Known issues
breakingIn version 5.0, the package was renamed from 'zope.multimapping' to just 'multimapping'. All imports must be updated.
fix
Replace 'from zope.multimapping import ...' with 'from multimapping import ...'
affects: >=5.0
deprecatedThe 'IUnorderedMultiMapping' interface is deprecated and will be removed in a future version. Use 'IMultiMapping' instead.
fix
Use 'IMultiMapping' from 'multimapping.interfaces'
affects: >=5.0
gotchaMethods like 'getall' return a list, not a tuple. Relying on immutability can break code.
fix
If you need an immutable sequence, convert the result to tuple: tuple(mm.getall('key1'))
affects: all
Upgrade
Version history
5.1latest on PyPI · released Jan 23, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
multimapping — pip install multimapping · libregistry