multi_key_dict
Multi key dictionary implementation
What it is and what it does
multi_key_dict is a Python dictionary implementation that allows a single value to be accessed and modified through multiple different keys. When you create an entry with multiple keys (e.g., `k[1000, 'kilo', 'k'] = value`), that value becomes accessible via any of those keys; updating the value through one key automatically reflects the change across all keys. The package extends the standard dict interface with methods to iterate over items by key type, find all keys mapping to a value, and perform other multi-key operations.
The package has no runtime dependencies and is classified as production-stable, though it has been abandoned since its latest release on 2015-09-20. It remains in the top 5000 PyPI packages by download volume, suggesting ongoing use despite its age.
Use it for:
- Create lookup tables where items have multiple identifiers (e.g., product ID, SKU, and name all pointing to the same record).
- Build index-name mappings that allow iteration by either numeric index or string name.
- Implement alias systems where multiple names or codes refer to the same underlying object.
- Store configuration or reference data accessible by multiple key formats (e.g., both short and long form).
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A dictionary that maps multiple keys to the same value, allowing you to access or update an element using any of its associated keys.
Yes, if you need multi-key lookup and accept the maintenance risk. The package is stable and permissively licensed with no known vulnerabilities, but it is abandoned and uses outdated distribution formats. Install only if you have tested it on your target Python version and are comfortable maintaining a fork if needed. For new projects, consider whether a modern alternative or a simple wrapper around a standard dict would be more maintainable.
Install
multi-key-dict on PyPI
pip
pip install multi-key-dictuv
uv add multi-key-dictpoetry
poetry add multi-key-dictInstalling multi_key_dict
Before you install
High install friction: the package is abandoned (last commit 2017-09-02) with no runtime dependencies. The distribution includes multiple archive formats (.tar.gz, .zip, .exe) but no wheels, suggesting outdated packaging practices.
License in practice
MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, though you must include the license notice.
Quickstart
from multi_key_dict import multi_key_dict
k = multi_key_dict()
k[1000, 'kilo', 'k'] = 'kilo (x1000)'
print(k[1000]) # 'kilo (x1000)'
print(k['k']) # 'kilo (x1000)'
Verify before relying
- Whether the package works reliably with modern Python versions despite being abandoned since 2015.
- Whether the high install friction (.exe installers, no wheels) reflects actual build/compatibility issues on current systems.
- Performance characteristics when handling large numbers of keys or values.
Package facts
| License | License :: OSI Approved :: MIT License (http://opensource.org/licenses/MIT) (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,981 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,948,236/month — #2,193 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: multi_key_dict-2.0.3.tar.gz; multi_key_dict-2.0.3.win32.exe; multi_key_dict-2.0.3.win-amd64.exe; multi_key_dict-2.0.3.zip
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
prodictProdict wraps Python dictionaries to allow…
permissive · top 15,000 on PyPI
dynamic-yamlAdds dynamic string interpolation to YAML…
permissive · top 15,000 on PyPI
pluckyPlucky provides concise, safe access to deeply…
permissive · top 15,000 on PyPI
dicttoxmlConverts Python dictionaries and other native…
copyleft · top 5,000 on PyPI
pygtriepygtrie provides pure Python implementations of…
permissive · top 5,000 on PyPI
attrdictProvides dictionary-like objects that allow…
permissive · top 5,000 on PyPI
collections-extendedProvides four specialized collection types—bag…
permissive · top 15,000 on PyPI
flake8-commasA flake8 plugin that enforces trailing comma…
permissive · top 15,000 on PyPI
schemaValidates Python data structures (dicts, lists,…
permissive · top 1,000 on PyPI
immutablesProvides an immutable mapping type backed by a…
permissive · top 5,000 on PyPI