My personal Python project cookiecutter template tailored to my own preferences.
- Python 3.11
- feature-rich scripts dir
scripts/setup
: setup the local environmentscripts/run
: run the app locallyscripts/format
: format source codescripts/lint
: lint source codescripts/test
: run testsscripts/docker_build
: build a docker image for the appscripts/docker_run
: run a docker container for the appscripts/publish_to_pypi
: publish the package to pypi.org
pyproject.toml
based- Dockerized
- Github Action to run CI
- MIT license
- Python-specific
.gitignore
pip install cookiecutter
cookiecutter https://github.com/rozelie/python_cookiecutter
./scripts/setup
./scripts/test
- Add Dockerfile.dev functionality
- Add logging.ini or similar
- Add optional functionality:
- SQLAlchemy, Postgres integration
- docker compose file
- FastAPI, domain-based
- Alembic
- Add target to create a new alembic revision (if using alembic)