px
pypx

enum-tools

v0.13.0

Tools to expand Python's enum module.

22 KB Python 3.7+ py3-none-anyGNU Lesser General Public License v3 or later (LGPLv3+)2 deps
Diff
$ uv add enum-tools

============

Enum Tools

Tools to expand Python's enum module.

:stub-columns: 1 :widths: 10 90 - Docs - |docs| |docs_check| - Tests - Linux Test Status Windows Test Status macOS Test Status Coverage - PyPI - |pypi-version| |supported-versions| |supported-implementations| |wheel| - Anaconda - Conda - Package Version Conda - Platform - Activity - |commits-latest| |commits-since| |maintained| |pypi-downloads| - QA - CodeFactor Grade Flake8 Status mypy status * - Other - License GitHub top language Requirements Status

This library provides the following:

#. enum_tools.autoenum – A Sphinx extension to document Enums better than autoclass can currently. #. @enum_tools.documentation.document_enum – A decorator to add docstrings to Enum members from a comment at the end of the line. #. 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

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

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

#. Enums with Attributes

#. When should I subclass EnumMeta instead of Enum?

Details

Version
0.13.0
License
GNU Lesser General Public License v3 or later (LGPLv3+)
Python
>=3.7
Maintainer
Dominic Davis-Foster <[email protected]>

Maintainers