Skip to main content

Tools to expand Python's enum module.

Project description

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?

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.12.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

enum_tools-0.12.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: enum_tools-0.12.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for enum_tools-0.12.0.tar.gz
Algorithm Hash digest
SHA256 13ceb9376a4c5f574a1e7c5f9c8eb7f3d3fbfbb361cc18a738df1a58dfefd460
MD5 8abd038e85f5392286242932c405ba0c
BLAKE2b-256 940655dfd19df0386a2a90d325dba67b0b5ba0b879a4bdac9cd225c22f6736d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: enum_tools-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for enum_tools-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d69b019f193c7b850b17d9ce18440db7ed62381571409af80ccc08c5218b340a
MD5 e6a7f159f9199374afecbcc35d2645a2
BLAKE2b-256 75fccc600677fe58519352ae5fe9367d05d0054faa47e8c57ef50a1bb9c77b0e

See more details on using hashes here.

Supported by

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