A comprehensive recipe management library for cloud-based applications
Project description
recipe-manager-nci
A comprehensive recipe management library for cloud-based applications.
Features
- Models -
IngredientandRecipedata classes with serialisation support - Validation - Input validation and HTML/script tag sanitisation
- Nutrition - Calorie and macronutrient estimation from ingredient lists
- Meal Planning - Weekly plan generation, shopping list aggregation, and recipe suggestions
- Formatting - Output recipes as plain text, HTML, JSON, or one-line summaries
Installation
pip install recipe-manager-nci
Quick Start
from recipe_manager import Recipe, NutritionEstimator, RecipeFormatter
recipe = Recipe(
title="Pancakes",
description="Fluffy breakfast pancakes",
category="breakfast",
ingredients=[
{"name": "flour", "quantity": 200, "unit": "grams"},
{"name": "egg", "quantity": 2, "unit": "whole"},
{"name": "milk", "quantity": 300, "unit": "ml"},
],
instructions=["Mix ingredients", "Cook on skillet"],
prep_time=10,
cook_time=20,
servings=4,
)
estimator = NutritionEstimator()
print(estimator.get_nutrition_summary(recipe.ingredients))
formatter = RecipeFormatter()
print(formatter.to_text(recipe))
Running Tests
pytest tests/ -v
Author
Kasi Reddy
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recipe_manager_nci-1.0.0.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recipe_manager_nci-1.0.0.tar.gz.
File metadata
- Download URL: recipe_manager_nci-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
753bf0d373bb68f5d472c1af9c461d57a366d01a23293271151bccfa55c3d27e
|
|
| MD5 |
0c35713f1d08c2954f7377dd01272444
|
|
| BLAKE2b-256 |
e86aeb8d6f7dc25778866847d7eaf53ee5b49d0b39f085a0ccfc702d79180990
|
File details
Details for the file recipe_manager_nci-1.0.0-py3-none-any.whl.
File metadata
- Download URL: recipe_manager_nci-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c543710890d0d6d1e48aef0f1d9ca0bd674195eaf07fe452cb575c4365f319d8
|
|
| MD5 |
b269978f74c2bd51f17eb3febc9e69eb
|
|
| BLAKE2b-256 |
670d5eda465366e2de1284f3ea403f6f8908ee34356c8b70a20798dd7fd607b1
|