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)[source]

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]

you can also use the lumache.a_new_func() function:

lumache.a_new_func(a, b=1)[source]

[summary]

\[\sum_{i=1}^{\infty} x_{i}\]
Parameters
  • a ([type]) – [description]

  • b (int, optional) – [description]. Defaults to 1.

Raises

TypeError – [description]

Returns

[description]

Return type

[type]

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

exception lumache.InvalidKindError[source]

Raised if the kind is invalid.

For example:

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