Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 666 Bytes

Tutorial1.rst

File metadata and controls

35 lines (21 loc) · 666 Bytes

Tutorial 1

Subtitulo1

To use Lumache, first install it using pip:

(.venv) $ pip install lumache

Subtitulo 2

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

.. autofunction:: lumache.get_random_ingredients

The kind parameter should be either "meat", "fish", or "veggies". Otherwise, :py:func:`lumache.get_random_ingredients` will raise an exception.

.. autoexception:: lumache.InvalidKindError

For example:

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