{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/10"}],"enrichment":{"capability":"Extends Python's built-in Enum to support multi-dimensional enum members with multiple attributes and reversible lookups by any attribute value.","skillfed_tags":["enum-extension","abandoned"],"use_cases":["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."],"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\u2014you can look up a member by any of its attribute values, not just by name.\n\nThe 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.","worth_installing":"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."},"id":"matrix-enum","links":{"html":"https://skillfed.io/packages/matrix-enum","md":"https://skillfed.io/packages/matrix-enum.md","pypi":"https://pypi.org/project/matrix-enum/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-12-04","license_spdx":null,"license_treatment":"permissive","name":"matrix-enum","python_support":"supports_current","summary":"Data structure for multi-dimensional enums"},"popularity":{"monthly_downloads":115281,"position":12261,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
