Decorator to automatically create Enum with filled values
Project description
libqtum
This Decorator returns an Enum, which contains all values in values
.
Values, which the passed class not include, will be auto generated with
prefix
+ value as name if they are in the values
list.
Args:
values: An iterable list of values for the Enum members.
enum_cls: The Enum class or a subclass of it.
prefix: The prefix for the name of the auto generated Enum members.
*args: Will be passed to the enum_cls
constructor.
**kwargs: Will be passed to the enum_cls
constructor.
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
Built Distribution
File details
Details for the file fill_enum-0.1.0.tar.gz
.
File metadata
- Download URL: fill_enum-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275a0e06751e7abd4f587a561cd13377bb728f4bda7f8e747d717002cd48793b |
|
MD5 | 39bf12a604615e476c5401dba0a42822 |
|
BLAKE2b-256 | 41c8fb84395f3aa4872e8c43cca383ccffd4e56d8499b360dbc60d59da32b15c |
File details
Details for the file fill_enum-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fill_enum-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68146c3aff58aa82020e2f5efab1aba3577b57ee77f756b347c06d162fa8dfb |
|
MD5 | bcd34be7129811e8931046c6bf22205f |
|
BLAKE2b-256 | ac2765fca235e56e27d16eb4b98908276ee520a5ba734649b604d499f13f1efd |