BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-aenum2.2.4_1
NetBSDdevel/py-aenum3.1.17
DragonFlydevel/py-aenum2.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.4_12.2.4_12.2.42.2.4_12.2.4_1
FreeBSD:14:quarterly2.2.4_12.2.4_1n/a2.2.4_12.2.4_1
FreeBSD:15:latest2.2.4_12.2.4_1n/a2.2.4_12.2.4_1
FreeBSD:15:quarterly2.2.4_12.2.4_1n/an/an/a
FreeBSD:16:latest2.2.4_12.2.4_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
aenum-2.2.4.tar.gz10800981828d1fbe20b6b188d75b21a0fa936d7d929d839ef843ef385d9c2a97082864
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.