Skip to main content

Simple Python API for Jow.fr

Project description

Jow API

This is a Python package that allows you to search for recipes on Jow.fr. The package provides an easy-to-use interface to search for recipes and fetch information about them.

Installation

You can install the package using pip :

pip install jow-api

Usage

The package provides convenient functions for searching and obtaining recipe information. Here's an example:

from jow_api import Jow

# Perform a search for recipes containing the word "poulet"
recipes = Jow.search("poulet", limit=5)

# Loop through each recipe in the results and print its attributes
for recipe in recipes:
    print(f"ID: {recipe.id}")
    print(f"Name: {recipe.name}")
    print(f"URL: {recipe.url}")
    print(f"Description: {recipe.description}")
    print(f"Preparation time: {recipe.preparationTime}")
    print(f"Cooking time: {recipe.cookingTime}")
    print(f"Preparation extra time per cover: {recipe.preparationExtraTimePerCover}")
    print(f"Covers count: {recipe.coversCount}")
    print("Ingredients:")
    for ingredient in recipe.ingredients:
        print(f"\t{ingredient.name}: {ingredient.quantity} {ingredient.unit}")
        if ingredient.isOptional:
            print("\t(optional)")
    print()

The Jow.search() function takes a search query as input, with an optional limit parameter, and returns a list of JowResult objects. Each JowResult object contains information about a single recipe, including its ID, name, URL on Jow.fr, and a list of ingredients.

Each JowResult object contains the following attributes:

  • id : The ID of the recipe.
  • name : The name of the recipe.
  • url : The URL of the recipe on Jow.fr.
  • ingredients : A list of Ingredient objects, each of which represents an ingredient used in the recipe.
  • imageUrl : The URL of the recipe image on Jow.fr.
  • videoUrl : The URL of the recipe video on Jow.fr.
  • description : A short description of the recipe.
  • preparationTime : The time required to prepare the recipe (in minutes).
  • preparationExtraTimePerCover : The extra time required to prepare the recipe for each additional serving.
  • cookingTime : The time required to cook the recipe (in minutes).

Each Ingredient object contains the following attributes:

  • name : The name of the ingredient.
  • quantity : The quantity of the ingredient needed for the recipe.
  • unit : The unit of measurement for the quantity of the ingredient.
  • isOptional : A boolean value indicating whether the ingredient is optional or not.

License

This package is licensed under the MIT License.

Disclaimer

This package is not affiliated with Jow.fr in any way. The data is retrieved using publicly available APIs, and the package does not guarantee the accuracy of the information provided. Please use this package at your own risk.

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

jow_api-0.1.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jow_api-0.1.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file jow_api-0.1.4.tar.gz.

File metadata

  • Download URL: jow_api-0.1.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for jow_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 164f34f23e46d671b040d7326a656a26a0ebd7e9e0ec114ac5101a76726d34bc
MD5 97bb2db2f2a12ec28d8d63a256b8d1dd
BLAKE2b-256 a7a1d2a2a8a96d1577d88835b15ccdab7f3f152af6d2f606ba03980bdbd44517

See more details on using hashes here.

File details

Details for the file jow_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: jow_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for jow_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88c6536593cd0cacd65257b07667af273c47dc7eed5a8663e5a652a553daa910
MD5 67eb50a273cefa44942a0cbe502edb5c
BLAKE2b-256 5e98234780b2ec90f807a8902261037f2480b34ad0bae7479ac109e9ad21ae5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page