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
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_food-0.2.0.tar.gz
(9.7 kB
view hashes)
Built Distribution
faker_food-0.2.0-py3-none-any.whl
(11.6 kB
view hashes)
Close
Hashes for faker_food-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f376a51b471fb2b4bf8519148810449442979e338081b20b464615d2eaa412ba |
|
MD5 | 2f020eca9c754c0bc632d5c4468d0744 |
|
BLAKE2b-256 | 9fc8b27f0901fdfa08fd06bb930027a44a932412d3d08b70fd8ff64c775eba07 |