Skip to main content

Enum provider for the Faker Python package.

Project description

Build status of the master branch MIT License Code style: Black

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


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 details)

Uploaded Source

Built Distribution

faker_enum-0.0.2-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file faker_enum-0.0.2.tar.gz.

File metadata

  • Download URL: faker_enum-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

File hashes

Hashes for faker_enum-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cf1cf25678fa5f0e675ff51b7c1b558bd480d554ed487783bbca664c5042e261
MD5 3ffa72d9da684adb91c9bb8134aa7f7f
BLAKE2b-256 80ea75195f82822e4b91a9b9c7f36fdce81f5c48d740423ceac51fdf955a1b1f

See more details on using hashes here.

File details

Details for the file faker_enum-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: faker_enum-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

File hashes

Hashes for faker_enum-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1af0b79c1c84b4df17854abf491a571281a1f931aa024bb27f9d8bef290ff362
MD5 04fb921e9987c4a78d04ef12a42ad009
BLAKE2b-256 14300e83180952fe22b4030e26060628fc21b0d87ca3bafad36374d224db097d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page