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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file faker_food-0.3.0.tar.gz.

File metadata

  • Download URL: faker_food-0.3.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/6.2.0-35-generic

File hashes

Hashes for faker_food-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2e5faed4d375dca53bd5ef4cdf362884197bb2fa6ae8ae4f6949f5143686b9d0
MD5 a088bd0f017ac464c021626d2afc57e5
BLAKE2b-256 ca69b1054912eefc7d862a8ea544485ddf6a75649dcc063eea2670662daeda87

See more details on using hashes here.

File details

Details for the file faker_food-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: faker_food-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/6.2.0-35-generic

File hashes

Hashes for faker_food-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eeec5f2cd64708b7cbb620a1851cb0cff77012a3f582535ddc8fd8ab535265e7
MD5 6a72a3d8bf9d72f8ff49364f2f3562d5
BLAKE2b-256 ef49d99824a40382fc3816b3204d7570abacbf19a5f965dd5f3703962f6d82f1

See more details on using hashes here.

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