A simple Python template repository using modern tooling with uv and pyproject.toml.
This template provides a minimal starting point for Python projects using:
- uv: Fast Python package manager and project manager
- pyproject.toml: Modern Python project configuration (PEP 518/621)
- Python 3.13+
Install uv if you haven't already:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Or via pip
pip install uvFor more installation options, see the uv documentation.
-
Clone or use this template:
git clone <repository-url> cd template-python
-
Sync dependencies (creates virtual environment automatically):
uv sync
Run the main script:
uv run python main.pyThis will execute the simple example in main.py which prints a greeting.
template-python/
├── .git/ # Git repository
├── .gitignore # Python-specific ignore patterns
├── .python-version # Pinned Python version (3.13)
├── pyproject.toml # Project configuration and dependencies
├── main.py # Main entry point
└── README.md # This file