Enum Tools

Tools to expand Python’s enum module.


Documentation Build Status Docs Check Status


Travis Build Status Windows Tests Status macOS Tests Status Coverage CodeFactor Grade


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


Conda - Package Version Conda - Platform


GitHub last commit GitHub commits since tagged version Maintenance


License GitHub top language Requirements Status pre-commit

This library provides the following:

  1. A decorator to add docstrings to Enum members from a comment at the end of the line.

  2. A Sphinx extension to document Enums better than autoclass can currently.

  3. Additional Enum classes with different functionality.


python3 -m pip install enum_tools --user

First add the required channels

conda config --add channels https://conda.anaconda.org/domdfcoding
conda config --add channels https://conda.anaconda.org/conda-forge

Then install

conda install enum_tools
python3 -m pip install git+https://github.com/domdfcoding/enum_tools@master --user

View the Function Index or browse the Source Code.

Browse the GitHub Repository