Skip to main content

Alternative method for documenting enums with Sphinx.

Project description

Alternative method for documenting enums with Sphinx.

Docs

Documentation Status Docs Check Status

Tests

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

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

Other

License GitHub top language Requirements Status pre-commit


This package has two features:

  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.

Installation

enum_tools can be installed from PyPI or Anaconda.

To install with pip:

$ python -m pip install enum_tools

To install with conda:

  • First add the required channels

$ conda config --add channels http://conda.anaconda.org/domdfcoding
$ conda config --add channels http://conda.anaconda.org/conda-forge
  • Then install

$ conda install 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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enum_tools-0.1.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enum_tools-0.1.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file enum_tools-0.1.2.tar.gz.

File metadata

  • Download URL: enum_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for enum_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 43643ae85a52a6a8e50abd81fe91d0f0f04f8716bbe31f7579274f4c9308ebb7
MD5 456e14e262fd88a8d6bdb72f46f61447
BLAKE2b-256 f7012aeddc632b37a88f03a829404d39d9479a421b2e2dfb24beb09428fa5cf3

See more details on using hashes here.

File details

Details for the file enum_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: enum_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for enum_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e8829b001d08ea2dae59da6fd4f3635f69eaba1ebfb04a60c157c702cd2e8be
MD5 4d6ba73b00082631d43983596c2f9054
BLAKE2b-256 4a2bbc96768f87bb7940a89eb4b07a7c5d663f9e263833ef81bad25d2bbf74df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page