enumtools 0.12.0
Tools to expand Python’s enum module.
Docs
Tests
PyPI
Anaconda
Activity
QA
Other
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?
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.