Get Started¶
Define custom scripts in your pyproject.toml and easily run them with this dependency free tool. This tool is both inspired by and similar to NPM Scripts .
To get started see the Quick Start section or check out the Features.
If you run into any issues or have any questions, support is available.
Features¶
- Define scripts in your
pyproject.toml - Easily run scripts with
run [name] - Cross-platform support using subprocess
- Supports
preandpostscripts - Supports multiple commands per script
- Pass additional arguments to scripts
- Automatically finds the
pyproject.toml - Runs scripts relative to the root directory
- Evaluate python code
For more details see the full reference.
Quick Start¶
First, install the package from PyPi or GitHub .
Then, add some scripts to the pyproject.toml.
pyproject.toml
[tool.scripts]
clean = "rm -rf dist"
build = "run clean && uv run hatch build"
prelint = "echo always runs before lint"
lint = ["uv run ruff check .", "uv run ty check ."]
postlint = "echo always runs after lint"
Finally, run a script.
Or, run without installing using astral-sh/uv .
Question
If you need help getting started or run into any issues, support is available!