enum-tools 0.13.0


pip install enum-tools

  Latest version

Released: Apr 17, 2025


Meta
Author: Dominic Davis-Foster
Requires Python: >=3.7

Classifiers

Development Status
  • 4 - Beta

Framework
  • Sphinx :: Extension

Intended Audience
  • Developers

License
  • OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3 :: Only
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Documentation
  • Documentation :: Sphinx
  • Software Development :: Documentation
  • Software Development :: Libraries :: Python Modules
  • Utilities

Typing
  • Typed

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?

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
pygments (>=2.6.1)
typing-extensions (>=3.7.4.3)