devel/py-aenum 3.1.17 NetBSD
Advanced Enumerations, NamedTuples, and NamedConstants
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- modified-bsd
- Categories
- devel, python
- Package size
- 263.4 KiB, 2611.7 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/py-aenum | 3.1.17 |
| FreeBSD | devel/py-aenum | 2.2.4_1 |
| DragonFly | devel/py-aenum | 2.2.4_1 |
Install
Binary package:
pkgin install py311-aenum
From pkgsrc:
cd /usr/pkgsrc/devel/py-aenum && make install clean
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-aenum-3.1.17,py313-aenum-3.1.17,py314-aenum-3.1.17