Enum provider for the Faker Python package.
Project description
faker_enum is a provider for the Faker Python package.
Summary
Faker enum provides the ability to generate enum values based on an enum type.
Usage
from enum import Enum
from faker import Faker
from faker_enum import EnumProvider
fake = Faker()
fake.add_provider(EnumProvider)
class Color(Enum):
RED = 1
GREEN = 2
BLUE = 3
fake.enum(Color)
# One of [Color.RED, Color.GREEN, Color.BLUE]
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
faker_enum-0.0.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for faker_enum-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af0b79c1c84b4df17854abf491a571281a1f931aa024bb27f9d8bef290ff362 |
|
MD5 | 04fb921e9987c4a78d04ef12a42ad009 |
|
BLAKE2b-256 | 14300e83180952fe22b4030e26060628fc21b0d87ca3bafad36374d224db097d |