devel/py-aenum 2.2.4_1 FreeBSD
Advanced Enumerations compatible with stdlib Enum
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 205.5 KiB, 1711.9 KiB installed
Description
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
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. If using Python 3 there is built-in support 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; consequently, it can have duplicate values.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-aenum | 2.2.4_1 |
| NetBSD | devel/py-aenum | 3.1.17 |
| DragonFly | devel/py-aenum | 2.2.4_1 |
Install
Binary package:
pkg install py312-aenum
From the ports tree:
cd /usr/ports/devel/py-aenum/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-aenum>0:devel/py-aenum
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.2.4_1 | 2.2.4_1 | 2.2.4 | 2.2.4_1 | 2.2.4_1 |
| FreeBSD:14:quarterly | 2.2.4_1 | 2.2.4_1 | n/a | 2.2.4_1 | 2.2.4_1 |
| FreeBSD:15:latest | 2.2.4_1 | 2.2.4_1 | n/a | 2.2.4_1 | 2.2.4_1 |
| FreeBSD:15:quarterly | 2.2.4_1 | 2.2.4_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.2.4_1 | 2.2.4_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 7
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| aenum-2.2.4.tar.gz | 108009 | 81828d1fbe20b6b188d75b21a0fa936d7d929d839ef843ef385d9c2a97082864 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.