A minimal, practical project template for small Python projects and experiments.
- Python 3.8+
- uv
- Fork or Copy: Fork this repository or copy the files to a new directory.
- Rename Directory: Rename the directory to your desired project name.
- Initialize Project: Run the following command to initialize the project with
uv, which will generate apyproject.tomlbased on your directory name:Note: If you want to specify a project name different from the directory name, you can pass theuv init --lib --build-backend hatchling .--nameargument (if supported by your uv version) or simply rename the directory first.
- Install dependencies:
uv sync
-
Run the main script or module:
uv run -m your_package
Replace
your_packagewith the actual package or script name.
- Run tests using
pytest:uv run pytest
Contributions are welcome. Open an issue or submit a pull request with a short description of changes.
MIT