Copier template for a simple Python projects
- Python project with
src
andtest
managed bypoetry
notebooks
for Jupyter notebooksMakefile
as task runner. Seemake help
pyenv
poetry
copier
$ copier copy gh:leoshimo/copier_python_template my_project
$ cd my_project
$ make setup
See make help
for list of tasks.
Add .env
with SOME_API_KEY=API_KEY
. Then use python-dotenv
:
import os
from dotenv import load_dotenv
load_dotenv()
os.environ.get('SOME_API_KEY')