semvec/pypi-packages huggingface dataset:
faker_food 0.3.0
Food related provider for the Python Faker library
License: MIT
Requires Python: >=3.8
Keywords: faker,data,test,mock,generator,food

# 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.
``` bash
pip install faker-food
```
## Usage
Add as a provider to your Faker instance:
``` python
>>> from faker import Faker
>>> from faker_food import FoodProvider
>>> fake = Faker()
>>> fake.add_provider(FoodProvider)
```
Now you can start to generate data:
```python
>>> 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:
* [faker-ruby/faker](https://github.com/faker-ruby/faker) ([food.yml](https://github.com/faker-ruby/faker/blob/master/lib/locales/en/food.yml))
* [Elixirs/faker](https://github.com/elixirs/faker/) ([food/en.ex](https://github.com/elixirs/faker/blob/master/lib/faker/food/en.ex))