Skip to main content

Python SDK for working with recipes from JSON files

Project description

Recipes SDK

Python SDK for working with recipes from JSON file.

Installation

pip install -r requirements.txt

Usage

from recipes_sdk import RecipesSDK

# Create SDK instance
sdk = RecipesSDK(language="en")  # or "ru"

# Random recipe
recipe = sdk.get_random_recipe()

# With allergens and calories filtering
recipe = sdk.get_random_recipe(
    user_allergens=["nuts", "gluten"], 
    max_calories=300
)

# By category
breakfast = sdk.get_recipes_by_category("breakfast")

API

  • get_random_recipe() - random recipe (returns JSON)
  • get_recipes_by_category(category) - all recipes from category (returns JSON)
  • get_random_recipe_by_category(category) - random recipe from category (returns JSON)
  • get_all_categories() - list of categories (returns JSON)
  • get_all_recipes() - all recipes (returns JSON)

All methods support filtering by allergens and calories.

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

recipes_sdk-0.2.0.tar.gz (248.0 kB view details)

Uploaded Source

Built Distribution

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

recipes_sdk-0.2.0-py3-none-any.whl (260.5 kB view details)

Uploaded Python 3

File details

Details for the file recipes_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: recipes_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 248.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for recipes_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c740509cee56df19a407b450dabe5eabe038342149ed2e2f2de2af3bb35cbd2c
MD5 307a46e95a2e92e8869a7fa7cba78032
BLAKE2b-256 eeedeb6971a8b81c1dc7c24f270f4f2bc9e595bf8c1f1ce0e4c45f7d8a06e99d

See more details on using hashes here.

File details

Details for the file recipes_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: recipes_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 260.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for recipes_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d98796015de2d583e708097cb21ed4ce725703385ee7bf5ab4b8e9fef4e505
MD5 8c1cfe0c52bc00738877cacb2392edef
BLAKE2b-256 1b8ce246f5dda08964925adadf4afb6eaeaa8c09d25cf16260025465dd1b0e57

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