Initial commit

This commit is contained in:
2024-01-25 11:22:01 +00:00
commit c89d0e6594
12 changed files with 364 additions and 0 deletions

23
lumache.py Normal file
View File

@@ -0,0 +1,23 @@
"""
Lumache - Python library for cooks and food lovers.
"""
__version__ = "0.1.0"
class InvalidKindError(Exception):
"""Raised if the kind is invalid."""
pass
def get_random_ingredients(kind=None):
"""
Return a list of random ingredients as strings.
:param kind: Optional "kind" of ingredients.
:type kind: list[str] or None
:raise lumache.InvalidKindError: If the kind is invalid.
:return: The ingredients list.
:rtype: list[str]
"""
return ["shells", "gorgonzola", "parsley"]