Skip to main content

Food related provider for the Python Faker library

Project description

faker_food: food provider for Faker

An add-on provider for the Python Faker module to generate random and/or fake data for food-related categories.

Description

faker_food provides food-related fake data for testing purposes.

Installation

Install the faker-food library with your package management tool.

pip install faker-food

Usage

Add as a provider to your Faker instance:

>>> from faker import Faker
>>> from faker_food import FoodProvider
>>> fake = Faker()
>>> fake.add_provider(FoodProvider)

Now you can start to generate data:

>>> fake.dish()
>>> fake.dish_description()
>>> fake.ethnic_category()
>>> fake.fruit()
>>> fake.ingredient()
>>> fake.measurement()
>>> fake.metric_measurement()
>>> fake.measurement_size()
>>> fake.spice()
>>> fake.sushi()
>>> fake.vegetable()

Data Sources

Data for this project was sourced from many different areas. Special thanks to the following sources:

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_food-0.3.0.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

faker_food-0.3.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

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