Get up and running with TomatoPy in minutes! This guide will walk you through the basics of creating and manipulating virtual ingredients.
API Reference - Explore the full API
Pro Tip: Use the
debug()
method to inspect ingredient properties:
Note: All measurements in TomatoPy use the metric system by default. Use the
convert_to_imperial()
method if needed.
Understanding the core concepts of TomatoPy will help you make the most of the library. This guide introduces the fundamental ideas and components.
Ingredients are the building blocks of TomatoPy. Each ingredient has properties that affect how it behaves during cooking operations.
The Kitchen class represents your virtual cooking environment. It manages cooking operations and maintains environmental conditions.
Recipes combine multiple ingredients and define how they should be prepared.
Ingredients have properties that affect their behavior:
Physical Properties: weight, volume, density
Chemical Properties: pH, water content, sugar content
Culinary Properties: ripeness, freshness, texture
Cooking operations transform ingredients through various methods:
Heat Application: simmering, boiling, roasting
Mechanical Action: chopping, blending, kneading
Chemical Changes: fermentation, curing
Ingredients maintain state throughout cooking operations:
Ingredients and cooked products have flavor profiles:
TomatoPy handles unit conversions automatically:
The library includes robust error handling:
Always Use Virtual Environments
Check Ingredient Properties Before Cooking
Use Type Hints for Better Code
API Reference - Explore the full API documentation
This guide will help you get TomatoPy up and running in your Python environment.
Python 3.8 or higher
pip (Python package installer)
A virtual environment (recommended)
We recommend using a virtual environment to manage your TomatoPy installation:
To verify your installation, run Python and try importing TomatoPy:
ImportError: No module named 'tomatopy'
Ensure you've activated your virtual environment
Verify the installation was successful with pip list | grep tomatopy
Version Compatibility
Check that you're using Python 3.8 or higher
Verify package dependencies are correctly installed
If you encounter any issues:
API Reference
The cooking operations module provides a comprehensive set of tools for simulating various cooking methods and processes in TomatoPy.
Always Validate Parameters
Monitor Temperature
Use Appropriate Methods
Kitchen
: Main class for cooking operations
Recipe
: Recipe management class
TemperatureMonitor
: Temperature monitoring class
QualityReport
: Cooking quality assessment class
__init__()
set_temperature(temp)
set_humidity(humidity)
set_pressure(pressure)
set_ventilation(level)
set_lighting(level)
set_equipment(equipment)
cook(ingredient, method, **params)
cook_batch(recipes)
validate_cooking_parameters(**params)
assess_cooking_result(result)
temperature_monitor()
API Reference - Explore the full API
The ingredient manipulation module provides tools for creating, modifying, and analyzing virtual ingredients in TomatoPy.
Always Check Ingredient State
Use Type Hints
Handle Unit Conversions Carefully
Ingredient
: Base class for all ingredients
Tomato
: Specialized tomato ingredient
Garlic
: Specialized garlic ingredient
Basil
: Specialized basil ingredient
__init__(name, amount, unit, properties)
update_properties(properties)
convert_to_imperial()
convert_volume(from_unit, to_unit)
get_density()
get_volume()
get_surface_area()
get_ph()
get_water_content()
get_sugar_content()
cut(method, size, consistency)
chop(fineness, method)
combine(*ingredients, method, consistency)
is_fresh()
get_freshness_score()
assess_quality()
API Reference - Explore the full API
Loading...
The Pizza Creation System provides specialized tools for creating and customizing virtual pizzas in TomatoPy.
Proper Dough Preparation
Topping Distribution
Temperature Control
Pizza
: Main pizza class
PizzaDough
: Dough management class
PizzaSauce
: Sauce management class
Topping
: Topping management class
PizzaOven
: Oven management class
__init__(dough, sauce, size, style)
add_topping(topping)
remove_topping(topping)
cut(method, **params)
analyze()
get_quality_metrics()
create_neapolitan(**params)
create_ny_style(**params)
create_chicago_style(**params)
API Reference - Explore the full API
The Taste Testing Module provides tools for analyzing and comparing the flavor profiles of ingredients and cooked products in TomatoPy.
Use Appropriate Analysis Depth
Validate Results
Handle Edge Cases
TasteTester
: Main taste testing class
TasteProfile
: Taste profile data class
AromaProfile
: Aroma profile data class
TextureProfile
: Texture profile data class
QualityProfile
: Quality profile data class
TasteVisualizer
: Visualization class
__init__()
analyze(ingredient, **params)
compare(ingredients, metrics)
analyze_balance(ingredient)
analyze_aroma(ingredient, **params)
analyze_texture(ingredient, **params)
assess_quality(ingredient, **params)
visualize_profile(profile, **params)
This guide outlines best practices for writing efficient and performant code with TomatoPy.
Memory Management
Use efficient data structures
Implement batch processing
Avoid unnecessary copies
Performance Optimization
Cache expensive computations
Use appropriate algorithms
Implement parallel processing
Resource Management
Use context managers
Implement connection pooling
Clean up resources properly
Code Organization
Follow modular design
Create clean interfaces
Maintain separation of concerns
Error Handling
Implement graceful recovery
Clean up resources properly
Log errors appropriately
API Reference - Explore the full API
This guide outlines best practices for managing virtual kitchens efficiently in TomatoPy.
Resource Management
Efficient equipment allocation
Space optimization
Resource tracking
Workflow Management
Task scheduling
Workflow optimization
Dependency management
Temperature Control
Zone management
Temperature monitoring
Alert systems
Safety Management
Safety protocols
Emergency procedures
Violation handling
Maintenance
Equipment maintenance
Cleaning protocols
Schedule management
This tutorial will guide you through advanced techniques for analyzing and optimizing flavor profiles using TomatoPy's taste testing capabilities.
Before starting, make sure you have:
Basic understanding of Python
TomatoPy installed
Understanding of basic taste concepts
Experience with basic flavor analysis
First, let's initialize our taste testing environment:
Let's start with a comprehensive flavor analysis:
Let's dive deep into aroma profiling:
Let's analyze the texture profile:
Let's analyze the balance of flavors:
Let's compare multiple ingredients:
Let's optimize the flavor profile:
Let's create detailed visualizations of our flavor profiles:
Proper Sample Preparation
Comprehensive Analysis
Data Validation
Recipes Library - Try more recipes
This tutorial will guide you through creating a classic marinara sauce using TomatoPy. We'll cover everything from ingredient selection to final taste testing.
Before starting, make sure you have:
Basic understanding of Python
TomatoPy installed
Virtual environment set up
First, let's initialize our virtual kitchen and configure the equipment:
Let's create our ingredients with optimal properties:
Let's set up our recipe with proper proportions and cooking instructions:
Now, let's execute the cooking process step by step:
Let's analyze our sauce to ensure it meets our standards:
Based on our analysis, we can make adjustments if needed:
Let's perform a final quality assessment:
Sauce Too Acidic
Sauce Too Thick
Insufficient Flavor
Always Check Ingredient Quality
Monitor Temperature
Regular Stirring
API Reference - Explore the full API
This tutorial will guide you through creating a perfect pizza using TomatoPy. We'll cover everything from dough preparation to final baking and quality assessment.
Before starting, make sure you have:
Basic understanding of Python
TomatoPy installed
Virtual environment set up
Understanding of basic pizza concepts
First, let's initialize our virtual kitchen and configure the pizza oven:
Let's create the perfect pizza dough with proper fermentation:
Let's prepare a classic pizza sauce:
Let's set up our toppings with proper proportions:
Now, let's create and assemble our pizza:
Let's execute the baking process with proper temperature control:
Let's analyze our pizza to ensure it meets our standards:
Let's cut our pizza into perfect slices:
Soggy Crust
Uneven Topping Distribution
Overcooked Cheese
Proper Dough Fermentation
Temperature Control
Topping Balance
API Reference - Explore the full API
- Learn about core TomatoPy concepts
- Follow a complete tutorial
- Dive deeper into specific modules
- Follow step-by-step guides
Check our
Join our
Visit our
- Create delicious pizzas
- Analyze cooking results
- Learn about cooking methods
- Create delicious pizzas
- Analyze pizza taste
- Control pizza equipment
- Control kitchen equipment
- Explore the full API
- Learn advanced techniques
- Learn kitchen optimization
- Learn advanced techniques
- Explore the full API
- Learn advanced techniques
- Learn optimization techniques
- Explore the full API
- Learn optimization techniques
- Learn to make pizza
- Master taste analysis
- Master taste analysis
- Learn optimization techniques
Basic Concepts
Installation Guide
The Kitchen Hardware Interface provides tools for controlling and monitoring virtual kitchen equipment in TomatoPy.
Always Check Equipment Status
Monitor Temperature
Regular Maintenance
KitchenHardware
: Main hardware control class
Oven
: Oven control class
Stove
: Stove control class
Blender
: Blender control class
Monitor
: Equipment monitoring class
Maintenance
: Maintenance management class
__init__()
get_oven()
get_stove()
get_blender()
check_safety()
check_status()
monitor()
schedule_maintenance()
get_maintenance_history()
set_safety_monitoring()
- Explore the full API
- Learn advanced techniques
- Learn best practices