Skip to main content

Tools to expand Python’s enum module.

Docs

Documentation Build Status Docs Check Status

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

This library provides the following:

  1. enum_tools.autoenum – A Sphinx extension to document Enums better than autoclass can currently.

  2. @enum_tools.documentation.document_enum – A decorator to add docstrings to Enum members from a comment at the end of the line.

  3. enum_tools.custom_enums – Additional Enum classes with different functionality.

Installation

enum_tools can be installed from PyPI or Anaconda.

To install with pip:

$ python -m pip install enum_tools

To install with conda:

$ conda install -c conda-forge enum_tools

Further Reading

  1. https://docs.python.org/3/library/enum.html

  2. Is it possible to define a class constant inside an Enum?

  3. Enums with Attributes

  4. When should I subclass EnumMeta instead of Enum?

Metadata

Release files for enum-tools 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enum-tools 0.13.0
File Size Uploaded
enum_tools-0.13.0.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enum-tools 0.13.0
File Interpreter ABI Platform
enum_tools-0.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / enum_tools-0.13.0.tar.gz

Download URL enum_tools-0.13.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0d13335e361d300dc0f8fd82c8cf9951417246f9676144f5ee1761eb690228eb
BLAKE2b-256 checksum
How to use checksums
6d8750091e20c2765aa495b24521844a7d8f7041d48e4f9b47dd928cd38c8606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / enum_tools-0.13.0-py3-none-any.whl

Download URL enum_tools-0.13.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0112b16767dd08cb94105844b52770eae67ece6f026916a06db4a3d330d2a95
BLAKE2b-256 checksum
How to use checksums
8445cf8a8df3ebe78db691ab54525d552085b67658877f0334f4b0c08c43b518
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page