API Reference#
API reference for flufl.enum
:
- class flufl.enum.Enum(*args)#
The public API Enum class.
- class flufl.enum.IntEnum(*args)#
A specialized enumeration with values that are also integers.
- class flufl.enum.EnumValue(enum: EnumMetaclass, value: Any, name: str)#
Class representing an enumeration value.
EnumValue(Color, ‘red’, 12) prints as ‘Color.red’ and can be converted to the integer 12.
- property enum: EnumMetaclass#
The underlying enum.
- property name: str#
The enum’s name.
- property value: Any#
The enum’s value.