File tree Expand file tree Collapse file tree 5 files changed +182
-0
lines changed
Expand file tree Collapse file tree 5 files changed +182
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ # Created by https://www.toptal.com/developers/gitignore/api/python
3+ # Edit at https://www.toptal.com/developers/gitignore?templates=python
4+
5+ # ## Python ###
6+ # Byte-compiled / optimized / DLL files
7+ __pycache__ /
8+ * .py [cod ]
9+ * $py.class
10+
11+ # C extensions
12+ * .so
13+
14+ # Distribution / packaging
15+ .Python
16+ build /
17+ develop-eggs /
18+ dist /
19+ downloads /
20+ eggs /
21+ .eggs /
22+ lib /
23+ lib64 /
24+ parts /
25+ sdist /
26+ var /
27+ wheels /
28+ share /python-wheels /
29+ * .egg-info /
30+ .installed.cfg
31+ * .egg
32+ MANIFEST
33+
34+ # PyInstaller
35+ # Usually these files are written by a python script from a template
36+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37+ * .manifest
38+ * .spec
39+
40+ # Installer logs
41+ pip-log.txt
42+ pip-delete-this-directory.txt
43+
44+ # Unit test / coverage reports
45+ htmlcov /
46+ .tox /
47+ .nox /
48+ .coverage
49+ .coverage. *
50+ .cache
51+ nosetests.xml
52+ coverage.xml
53+ * .cover
54+ * .py,cover
55+ .hypothesis /
56+ .pytest_cache /
57+ cover /
58+
59+ # Translations
60+ * .mo
61+ * .pot
62+
63+ # Django stuff:
64+ * .log
65+ local_settings.py
66+ db.sqlite3
67+ db.sqlite3-journal
68+
69+ # Flask stuff:
70+ instance /
71+ .webassets-cache
72+
73+ # Scrapy stuff:
74+ .scrapy
75+
76+ # Sphinx documentation
77+ docs /_build /
78+
79+ # PyBuilder
80+ .pybuilder /
81+ target /
82+
83+ # Jupyter Notebook
84+ .ipynb_checkpoints
85+
86+ # IPython
87+ profile_default /
88+ ipython_config.py
89+
90+ # pyenv
91+ # For a library or package, you might want to ignore these files since the code is
92+ # intended to run in multiple environments; otherwise, check them in:
93+ # .python-version
94+
95+ # pipenv
96+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99+ # install all needed dependencies.
100+ # Pipfile.lock
101+
102+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
103+ __pypackages__ /
104+
105+ # Celery stuff
106+ celerybeat-schedule
107+ celerybeat.pid
108+
109+ # SageMath parsed files
110+ * .sage.py
111+
112+ # Environments
113+ .env
114+ .venv
115+ env /
116+ venv /
117+ ENV /
118+ env.bak /
119+ venv.bak /
120+
121+ # Spyder project settings
122+ .spyderproject
123+ .spyproject
124+
125+ # Rope project settings
126+ .ropeproject
127+
128+ # mkdocs documentation
129+ /site
130+
131+ # mypy
132+ .mypy_cache /
133+ .dmypy.json
134+ dmypy.json
135+
136+ # Pyre type checker
137+ .pyre /
138+
139+ # pytype static type analyzer
140+ .pytype /
141+
142+ # Cython debug symbols
143+ cython_debug /
144+
145+ # End of https://www.toptal.com/developers/gitignore/api/python
Original file line number Diff line number Diff line change 1+ # Lumache
2+
3+ ![ Lumache logo] ( lumache-logo.png )
4+
5+ ** Lumache** (/lu'make/) is a Python library for cooks and food lovers
6+ that creates recipes mixing random ingredients.
Original file line number Diff line number Diff line change 1+ """
2+ Lumache - Python library for cooks and food lovers.
3+ """
4+
5+ __version__ = "0.1.0"
6+
7+
8+ class InvalidKindError (Exception ):
9+ """Raised if the kind is invalid."""
10+ pass
11+
12+
13+ def get_random_ingredients (kind = None ):
14+ """
15+ Return a list of random ingredients as strings.
16+
17+ :param kind: Optional "kind" of ingredients.
18+ :type kind: list[str] or None
19+ :raise lumache.InvalidKindError: If the kind is invalid.
20+ :return: The ingredients list.
21+ :rtype: list[str]
22+ """
23+ return ["shells" , "gorgonzola" , "parsley" ]
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" flit_core >=3.4,<4" ]
3+ build-backend = " flit_core.buildapi"
4+
5+ [project ]
6+ name = " lumache"
7+ authors = [{name = " Graziella" , email = " graziella@lumache" }]
8+ dynamic = [" version" , " description" ]
You can’t perform that action at this time.
0 commit comments