Skip to main content

A small enum package

Project description

enum

Python enum implementation

Usage

>>> from enum import EnumBase
>>>
>>> class Color(EnumBase):
>>>     red = 1
>>>     green = 2
>>>     ...
>>> Color.red
1
>>> Color.get_value('red')
1
>>> Color.get_name(1)
'red'

TODO

  • Added setup.py
  • Unittest
  • CI

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

jx-enum-1.0.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

jx_enum-1.0.0-py2-none-any.whl (3.4 kB view hashes)

Uploaded Python 2

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