Enumeration library for python.
Project description
Enumeration library for python.
Basic Usage
from enumit import Enum
class Status(Enum):
APPROVED = Enum.Field('approved')
DENIED = Enum.Field('denied', 'Denied')
>> Status.APPROVED
>> approved
>> Status['approved']
>> Approved
>> Status.choices()
>> [('approved', 'Approved'), ('denied', 'Denied')]
>> Status.values()
>> ['approved', 'denied']
>> Status.names()
>> ['Approved', 'Denied']
>> 'approved' in Status
>> True
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
enumit-1.2.tar.gz
(2.2 kB
view details)
File details
Details for the file enumit-1.2.tar.gz.
File metadata
- Download URL: enumit-1.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd616fe1efcf3429dd5a1e94b5af789d195e9fe8ae3cab631aacc3d10f87aea5
|
|
| MD5 |
fefb113479e520532b3275b3647ec73d
|
|
| BLAKE2b-256 |
ba89a6cce30d694f28f71159bf3c91106eb3d96b1099d3c32fc7992c5a9e2b58
|