Usage

Installation

To use Lumache, first install it using pip:

(.venv) $ pip install lumache

Creating recipes

To retrieve a list of random ingredients, you can use the lumache.get_random_ingredients() function:

lumache.get_random_ingredients(kind=None)

Return a list of random ingredients as strings.

Parameters:

kind (list[str] or None) – Optional “kind” of ingredients.

Raises:

lumache.InvalidKindError – If the kind is invalid.

Returns:

The ingredients list.

Return type:

list[str]

The kind parameter should be either "meat", "fish", or "veggies". Otherwise, lumache.get_random_ingredients() will raise an exception.

exception lumache.InvalidKindError

Raised if the kind is invalid.

For example:

>>> import lumache
>>> lumache.get_random_ingredients()
['shells', 'gorgonzola', 'parsley']

To mix ingredients in a bowl, use lumache.mixing_bowls():

lumache.mixing_bowls(n_bowls, n_hands=2, shake=False) bool

Do some mixing.

Here’s a new paragraph.

Parameters:
  • n_bowls (int) – Number of bowls.

  • n_hands (int) – Number of hands to use for mixing the food in the bowls. The default is 2.

  • shake (bool) – Whether to shake the bowls at the same time. The default is False.

Returns:

True if successful, False otherwise.

Return type:

bool