A modern Python project template using uv for fast and reliable package management.
- 🚀 uv for package management - Fast, reliable, and drop-in replacement for pip
- 📦 Modern project structure - Uses
pyproject.tomlfor configuration - 🔧 Development tools - Pre-configured with
rufffor linting and formatting - 🎯 Python 3.14+ - Uses the latest Python features
-
Python 3.14 or higher
-
uv - Install with:
curl -LsSf https://astral.sh/uv/install.sh | shOr using Homebrew:
brew install uv
Or using pip:
pip install uv
If you're using this as a template:
- Click "Use this template" on GitHub, or
- Clone this repository and update the project name in
pyproject.toml
Edit pyproject.toml to customize:
- Project name
- Version
- Description
- Dependencies
Install the project and development dependencies:
# Install project dependencies
uv sync
# Or install with dev dependencies (recommended)
uv sync --dev# Run the main script
uv run python main.py
# Or activate the virtual environment and run directly
source .venv/bin/activate # On macOS/Linux
python main.pyFormat code using ruff:
make formatOr directly with uv:
uv run ruff format .Add runtime dependencies:
uv add <package-name>Add development dependencies:
uv add --dev <package-name>uv automatically manages the virtual environment. It's located at .venv/ in your project root.
To activate it manually:
source .venv/bin/activate # On macOS/Linux
.venv\Scripts\activate # On Windows.
├── main.py # Main entry point
├── pyproject.toml # Project configuration and dependencies
├── uv.lock # Lock file for reproducible builds
├── Makefile # Common development commands
└── README.md # This fileSee LICENSE file for details.