Installation¶
This page covers all supported installation methods for template-python.
Requirements¶
Before installing, ensure your system meets the following prerequisites:
| Requirement | Minimum Version | Notes |
|---|---|---|
| Python | 3.10+ | Required for all installation methods |
| Package Manager | pip, uv, or Hatch | Required for dependencies |
| Git | 2.x | Required for source installs |
| Docker | 24.x | Optional — for containerized installs |
Standard Installation¶
If you need to install the package directly into an environment (e.g., for local development or testing), use pip or uv:
Verify the Installation¶
After installation, you can confirm it is available in your Python environment by running:
You should see output similar to:
Install from Source¶
To install the latest unreleased code directly from the repository and set up a local development environment:
git clone https://github.com/markurtz/template-python.git
cd template-python
# Sync the development environment (installs all groups and extras)
uv sync --all-groups --all-extras
# Or, optionally install specific groups/extras:
uv sync --group dev --extra some_extra
[!TIP] This is the recommended setup for contributors looking to make changes to the source code.
Docker Installation¶
A pre-built Docker image is available for containerized environments:
# Pull the latest image
docker pull ghcr.io/markurtz/template-python:latest
# Run a one-off command
docker run --rm ghcr.io/markurtz/template-python:latest python -c "import template_python; print(template_python.__version__)"
For a persistent, volume-mounted setup using Docker Compose, see the docker-compose.yml in the root of the repository.
Platform-Specific Notes¶
Python, `pip`, and `uv` work seamlessly on macOS. We recommend using `brew install uv` to get started.
Upgrading¶
To upgrade an existing installation to the latest release:
Uninstalling¶
Troubleshooting¶
| Problem | Solution |
|---|---|
| Import errors after install | Ensure you have the latest version installed. |
| Version conflicts | Isolate your dependencies using your language's recommended tool. |
If you continue to experience issues, please visit our Support page.
Next: Quick Start →