Usage

Installation

To use Lumache, install it with pip:

pip install lumache

Creating recipes

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

lumache.get_random_ingredients()

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]

exception lumache.InvalidKindError

Raised if the kind is invalid.