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
Release history Release notifications | RSS feed
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)