Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

faker-enum

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faker-enum

Enum provider for the Faker Python package.

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

========== Faker Enum

|travis_ci| |license| |code_style|

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

.. code:: python

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]

.. |travis_ci| image:: https://img.shields.io/travis/NazarioJL/faker_web/master.svg?style=flat-square&label=unix%20build :target: http://travis-ci.org/NazarioJL/faker_enum :alt: Build status of the master branch

.. |license| image:: https://img.shields.io/badge/License-MIT-yellow.svg :target: https://github.com/NazarioJL/faker_enum/blob/master/LICENSE :alt: MIT License .. |code_style| image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black :alt: Code style: Black

.. _Faker: https://github.com/joke2k/faker .. _faker_enum: https://github.com/NazarioJL/faker_enum

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc