A Copier template for quickly scaffolding new Python projects with modern tooling and best practices.
This template generates a standardized Python project structure with:
- Modern
pyproject.tomlconfiguration - Ruff linting and formatting setup
- Docker support
- Configurable Python version support
- Pre-configured project metadata
Generate a new project from this template:
copier copy gh:statkern15/python_copier_template /path/to/new/projectOr use a local copy:
copier copy /path/to/python_copier_template /path/to/new/projectYou'll be prompted for:
- Project name
- Project description
- Author name and email
- Python version
Once your project is created:
-
Navigate to the project directory:
cd /path/to/new/project -
Initialize git repository (if not already done):
git init git add . git commit -m "Initial commit from template"
-
Set up Python environment and install dependencies:
uv sync --group dev
-
Verify Ruff configuration:
uv run ruff check . uv run ruff format .
-
Start coding! Your project structure is ready with best practices configured.
Update a project created from this template to get the latest changes:
cd /path/to/project
copier updateOr specify the template path:
copier update --vcs-ref=HEAD /path/to/project