Skip to main content

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:

Metadata

Release files for faker_food 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker_food 0.3.0
File Size Uploaded
faker_food-0.3.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for faker_food 0.3.0
File Interpreter ABI Platform
faker_food-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / faker_food-0.3.0.tar.gz

Download URL faker_food-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e5faed4d375dca53bd5ef4cdf362884197bb2fa6ae8ae4f6949f5143686b9d0
BLAKE2b-256 checksum
How to use checksums
ca69b1054912eefc7d862a8ea544485ddf6a75649dcc063eea2670662daeda87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.8 Linux/6.2.0-35-generic

Release files / faker_food-0.3.0-py3-none-any.whl

Download URL faker_food-0.3.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeec5f2cd64708b7cbb620a1851cb0cff77012a3f582535ddc8fd8ab535265e7
BLAKE2b-256 checksum
How to use checksums
ef49d99824a40382fc3816b3204d7570abacbf19a5f965dd5f3703962f6d82f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.8 Linux/6.2.0-35-generic

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page