skillfed

aenum

Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants

aenum Permissive license BSD License Active 209 v3.1.17 released

Install

aenum on PyPI

pip

pip install aenum

uv

uv add aenum

poetry

poetry add aenum

Package 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development

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
advanced enum implementationpython enumeration librarynamed tuple classsymbolic constantsenum with custom valuesflag and intflag enumsnamed constant class

Similar packages