Skip to main content

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

Project description

aenum includes the new Python stdlib enum module available in Python 3.4 backported for previous versions of Python from 2.7 and 3.3+ tested on 2.7, and 3.3+

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.

A NamedTuple is a class-based, fixed-length tuple with a name for each possible position accessible using attribute-access notation.

A NamedConstant is a class whose members cannot be rebound; it lacks all other Enum capabilities, however; consequently, it can have duplicate values. There is also a module function that can insert the NamedConstant class into sys.modules where it will appear to be a module whose top-level names cannot be rebound.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

aenum-1.4.0.zip (65.7 kB view details)

Uploaded Source

aenum-1.4.0.tar.gz (60.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aenum-1.4.0-py2.py3-none-any.whl (63.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aenum-1.4.0.zip.

File metadata

  • Download URL: aenum-1.4.0.zip
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aenum-1.4.0.zip
Algorithm Hash digest
SHA256 edf9f823f641748f5e062fd140a11a7bf98a308c6ed264933a18e5856172267d
MD5 95ac9f875ccce7152486d25ee46c7029
BLAKE2b-256 eef4551869680ff1ace969e3207c0dde300584727acaa601235a2f839a799755

See more details on using hashes here.

File details

Details for the file aenum-1.4.0.tar.gz.

File metadata

  • Download URL: aenum-1.4.0.tar.gz
  • Upload date:
  • Size: 60.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aenum-1.4.0.tar.gz
Algorithm Hash digest
SHA256 b0b7530c0174306bba6a922e9a468da1b075516619cca607ede095a203a56918
MD5 3d6f390eed4e2bf7b59afae623f99d28
BLAKE2b-256 a488b299227847a4ac2c4f5d6031883516f30016f79de19ff4d6bb005b062275

See more details on using hashes here.

File details

Details for the file aenum-1.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aenum-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc60eab9996ffeb0bdfc4dc934200e9aca83191786eb0b07b766d4de2290d4be
MD5 41f31bb048d63a2d763c49d6fad3a3a6
BLAKE2b-256 307a8a3fefb935b15844b1df3fd5fb4de9c75936e06c37cb2a5b2a012ade9123

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page