aenum
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
Install
aenum on PyPI
pip
pip install aenumuv
uv add aenumpoetry
poetry add aenumPackage facts
| License | BSD License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 146 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: aenum-3.1.17-py2-none-any.whl; aenum-3.1.17-py3-none-any.whl
About aenum
from the package's own PyPI description — quoted content, verbatim
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
WARNING: Version 3.1 has breaking changes in custom Enum settings WARNING: WARNING: AutoNumber has been removed WARNING: AutoValue has been removed
aenum includes a Python stdlib Enum-compatible data type, as well as a metaclass-based NamedTuple implementation and a NamedConstant class.
An Enum is a set of symbolic names (members) bound to unique, constant values. Within an enumeration, the members can be compared by identity, and the enumeration itself can be iterated over. Support exists for unique values, multiple values, auto-numbering, and suspension of aliasing (members with the same value are not identical), plus the ability to have values automatically bound to attributes.
A NamedTuple is a class-based, fixed-length tuple with a name for each possible position accessible using attribute-access notation as well as the standard index notation.
A NamedConstant is a class whose members cannot be rebound; it lacks all other Enum capabilities, however.
Enum classes:
-
Enum: Base class for creating enumerated constants.
-
IntEnum: Base class for creating enumerated constants...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
aenum provides advanced enumeration types compatible with Python's standard Enum, plus NamedTuple and NamedConstant classes for defining symbolic constants and fixed-length named tuples.
Low install friction with no runtime dependencies. Actively maintained as of June 2026 with 209 repository stars and recent commits, supporting Python 2.7 through 3.13.
BSD License (permissive) allows free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Usage
from aenum import Enum, IntEnum, Flag
class Color(Enum):
RED = 1
GREEN = 2
BLUE = 3
class Permission(Flag):
READ = 4
WRITE = 2
EXECUTE = 1
Verdict: aenum is a stable, actively maintained library offering enhanced enumeration capabilities beyond Python's stdlib Enum. With zero known vulnerabilities, permissive licensing, no dependencies, and broad Python version support, it is a low-risk choice for projects needing advanced enum features—though note version 3.1 introduced breaking changes to custom Enum settings.
Needs verification
- Whether the breaking changes in version 3.1 (AutoNumber and AutoValue removal) affect typical use cases or require migration effort for existing code
- Performance characteristics compared to stdlib Enum for large enumeration sets
Similar packages
permissive · top 1,000 on PyPI
typedloadcopyleft · top 1,000 on PyPI
asynciopermissive · top 1,000 on PyPI
argparsepermissive · top 1,000 on PyPI
orjsoncopyleft · top 1,000 on PyPI
opentelemetry-semantic-conventionspermissive · top 100 on PyPI
azure-mgmt-resourcepermissive · top 1,000 on PyPI
strictyamlpermissive · top 1,000 on PyPI
sympypermissive · top 1,000 on PyPI
trove-classifierspermissive · top 100 on PyPI