matrix-enum
Data structure for multi-dimensional enums
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit May 2023, last release December 2020) with no active maintenance. While it works for its narrow use case and has no known vulnerabilities, the lack of updates means it will not adapt to future Python versions or address any bugs that emerge. For new projects, prefer a maintained alternative or implement multi-dimensional enum logic directly using dataclasses or a simple wrapper.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 2.7 or 3.4+; abandoned status means no support for modern Python versions beyond 3.7.
- Low friction installation with only two lightweight runtime dependencies (six and enum34).
- However, the package is abandoned—last commit was 2023-05-17 and no releases since 2020-12-04, so expect no maintenance or updates for bugs or compatibility issues.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2020-12-04 (2079 days) · last repo commit 2023-05-17 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,281 downloads/mo, #12,261 on PyPI
Alternatives
Verify before relying
pip install matrix_enum
from matrix_enum import MatrixEnum, Member
class Status(MatrixEnum):
ACTIVE = Member(code=1, label='active')
INACTIVE = Member(code=2, label='inactive')
print(Status.ACTIVE.code) # 1
print(Status(1) is Status.ACTIVE) # True- Whether the package works correctly with Python versions released after 3.7 (last tested version in classifiers).
- Real-world performance or stability issues that may have emerged since the last release in December 2020.
- Whether six and enum34 dependencies remain compatible with current Python ecosystems.
What it is and what it does
MatrixEnum is a wrapper around Python's standard Enum that lets you define enum members with multiple named attributes instead of a single value. Each member is constructed using a Member object that holds arbitrary key-value pairs, and all members must have the same set of attributes with globally unique values across all attributes. The package automatically makes enum members reversible—you can look up a member by any of its attribute values, not just by name.
The main use case is when you need an enum where each entry has several related pieces of data (like a status code, a display label, and a database ID) and you want to retrieve enum members by any of those values interchangeably. It also supports an `extra()` method to attach duplicate-allowed metadata to members. The package depends on six and enum34 for compatibility, though it is no longer maintained as of late 2020.
Use it for
- Define a status enum with code, label, and description attributes, then look up by any of them.
- Create a mapping of HTTP status codes to reason phrases and canonical names, retrievable by any dimension.
- Build an animal classification enum with scientific name, common name, and taxonomy ID, queryable by each.
- Store role definitions with numeric ID, string name, and permission level, with reversible lookups.
- Represent currency data (code, symbol, name) in a single enum with multi-way lookup.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit May 2023, last release December 2020) with no active maintenance. While it works for its narrow use case and has no known vulnerabilities, the lack of updates means it will not adapt to future Python versions or address any bugs that emerge. For new projects, prefer a maintained alternative or implement multi-dimensional enum logic directly using dataclasses or a simple wrapper.
Install
matrix-enum on PyPI
Before you install
Low friction installation with only two lightweight runtime dependencies (six and enum34). However, the package is abandoned—last commit was 2023-05-17 and no releases since 2020-12-04, so expect no maintenance or updates for bugs or compatibility issues.
Requires Python 2.7 or 3.4+; abandoned status means no support for modern Python versions beyond 3.7.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install matrix_enum
from matrix_enum import MatrixEnum, Member
class Status(MatrixEnum):
ACTIVE = Member(code=1, label='active')
INACTIVE = Member(code=2, label='inactive')
print(Status.ACTIVE.code) # 1
print(Status(1) is Status.ACTIVE) # True
Verify before relying
- Whether the package works correctly with Python versions released after 3.7 (last tested version in classifiers).
- Real-world performance or stability issues that may have emerged since the last release in December 2020.
- Whether six and enum34 dependencies remain compatible with current Python ecosystems.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagessixenum34 |
| Maintenance | Abandoned 2,079 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,281 / month, #12,261 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: matrix_enum-1.1.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multi-dimensional enums”
- matrix-enumExtends Python's built-in Enum to support multi-dimensional enum…
- axial-positional-embeddingProvides axial positional embeddings for transformer networks,…
- ndcubendcube manipulates, inspects, and visualizes multi-dimensional…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also enum-tools · pysubtypes · backports.strenum · aenum · ordered-enum · django-enumfields · enum34 · StrEnum · alembic-postgresql-enum · marshmallow-enum