My personal template for Python projects.
- Modern Python tooling with uv for dependency management and environment setup
- Pre-configured
pyproject.toml - Automated workflows - just commands for testing, linting, and building
- Code quality tools: ruff for linting and formatting, pre-commit hooks
- Testing setup with pytest and Hatch for cross-version testing
- GitHub Actions integration: optional workflows for linting, testing and PyPI publishing
- Conditional repo setup: if
ghis installed, optionally create a public/private GitHub repo - Licenses from choosealicense.com
- Basic
README.mdwith badges and installation instructions
- Python 3.12 or higher
- sprout
- Git
sprout "https://github.com/zigai/python-project-template.git" /path/to/your/projectyour-project/
βββ your_package/
β βββ __init__.py
βββ tests/
β βββ test_your_package.py
βββ .github/workflows/
βββ pyproject.toml
βββ README.md
βββ CONTRIBUTING.md
βββ Justfile
βββ LICENSE
βββ .gitignore