🍕🔥 Pizza is great! 🔥🍕

Guida Rapida

Inizia a usare TomatoPy in pochi minuti! Questa guida ti accompagnerà attraverso le basi della creazione e manipolazione degli ingredienti virtuali.

Uso Base

Creare il Tuo Primo Pomodoro

from tomatopy import Tomato

# Crea un pomodoro fresco
my_tomato = Tomato(
    ripeness=0.8,  # 80% maturo
    variety="San Marzano",
    weight=150  # grammi
)

# Controlla le proprietà del pomodoro
print(my_tomato.ripeness)  # 0.8
print(my_tomato.variety)   # "San Marzano"

Configurare la Tua Cucina Virtuale

from tomatopy import Kitchen
# Crea una salsa dal tuo pomodoro
sauce = kitchen.cook(
    my_tomato,
    method="simmer",
    duration="30m",
    temperature=100
)

Lavorare con Più Ingredienti

# Create a sauce from your tomato
from tomatopy import TasteTester
    my_tomato,
# Crea un assaggiatore
tester = TasteTester()
    temperature=100
# Analizza la tua salsa
profile = tester.analyze(sauce)
# Check sauce properties
# Ottieni le metriche del gusto
print(profile.acidity)     # 0.7

Prossimi Passi

from tomatopy import Ingredient, Recipe
Consiglio Pro
# Create additional ingredients
garlic = Ingredient("garlic", amount=3, unit="cloves")
basil = Ingredient("basil", amount=10, unit="leaves")

# Create a recipe
marinara = Recipe("Classic Marinara")
marinara.add_ingredient(my_tomato)
marinara.add_ingredient(garlic)
marinara.add_ingredient(basil)

# Cook the recipe
sauce = kitchen.cook_recipe(marinara)

Taste Testing

from tomatopy import TasteTester

# Create a taste tester
tester = TasteTester()

# Analyze your sauce
profile = tester.analyze(sauce)

# Get taste metrics
print(profile.acidity)     # 0.7
print(profile.sweetness)   # 0.3
print(profile.umami)       # 0.8

Next Steps

  • Basic Concepts - Learn about core TomatoPy concepts

  • Making Your First Marinara - Follow a complete tutorial

  • API Reference - Explore the full API

Tips and Tricks

Pro Tip: Use the debug() method to inspect ingredient properties:

my_tomato.debug()  # Prints detailed information about the tomato

Note: All measurements in TomatoPy use the metric system by default. Use the convert_to_imperial() method if needed.

Was this helpful?