UNKNOWN
Project description
example of use:
- class FOO(MetaEnum):
BAZ = (0, ‘bazik’) BAR = 1
>>> FOO.BAZ 0 >>> FOO.BAR 1 >>> FOO.BAZ_name 'BAZ' >>> FOO.BAZ_verbose 'bazik' >>> FOO.get_verbose(FOO.BAZ) 'bazik' >>> FOO.get_verbose(FOO.BAR) None >>> FOO.as_choices() [(0, 'bazik'), (1, None)]>>> FOO.by_name('BAZ') 0 >>> FOO.by_verbose('bazik') 1
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
MetaEnum-1.0.tar.gz
(1.9 kB
view details)
File details
Details for the file MetaEnum-1.0.tar.gz.
File metadata
- Download URL: MetaEnum-1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45273780289e45214f12e24a0893186d2860fbe9e3644526f96cc2a4550b78c7
|
|
| MD5 |
aa06ef7675adc5a0aecc8ec2f8bcee41
|
|
| BLAKE2b-256 |
311948171de9382856709a59e4dfc71afa64b2d10571ff8b168565b02f7cfea0
|