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
fill_enum-0.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for fill_enum-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68146c3aff58aa82020e2f5efab1aba3577b57ee77f756b347c06d162fa8dfb |
|
MD5 | bcd34be7129811e8931046c6bf22205f |
|
BLAKE2b-256 | ac2765fca235e56e27d16eb4b98908276ee520a5ba734649b604d499f13f1efd |