API#

Lumache - Python library for cooks and food lovers.

exception rtd.lumache.InvalidKindError#

Bases: Exception

Raised if the kind is invalid.

args#
with_traceback()#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

rtd.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]