Ingredient Manipulation
Creating Ingredients
Basic Ingredient Creation
from tomatopy import Ingredient
# Create a basic ingredient
tomato = Ingredient(
name="tomato",
amount=1,
unit="whole",
properties={
"ripeness": 0.8,
"water_content": 0.95,
"sugar_content": 0.03
}
)Specialized Ingredient Classes
Modifying Ingredients
Property Updates
Unit Conversion
Ingredient Analysis
Physical Properties
Chemical Analysis
Ingredient Operations
Cutting and Chopping
Combining Ingredients
Quality Control
Freshness Check
Quality Assessment
Error Handling
Best Practices
API Reference
Classes
Methods
Ingredient Class
Next Steps
Last updated
Was this helpful?