duty
A simple task runner.
Inspired by Invoke.
Installation
pip install duty
With uv:
uv tool install duty
Quick start
Create a duties.py file at the root of your repository.
from duty import duty
@duty
def docs(ctx):
ctx.run("mkdocs build", title="Building documentation")
You can now use the command line tool to run it:
duty docs
See the Usage section in the documentation for more examples.
Also see "Why choosing duty over...".
Sponsors
And 4 more private sponsor(s).
Metadata
Release files for duty 1.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| duty-1.10.0.tar.gz | 146.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duty-1.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 317.6 kB
Release files / duty-1.10.0.tar.gz
| Download URL | duty-1.10.0.tar.gz |
|---|---|
| Size | 146.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b45941e53914ee01b9d3eb4dd32c858f982cdc6f2ee619aeb39eaf00ccf416ae
|
|
BLAKE2b-256 checksum How to use checksums |
6fe366a4ffadbe9e17131fffce87668e0ef8f3dbfc6e1525fd2554e9b44970eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / duty-1.10.0-py3-none-any.whl
| Download URL | duty-1.10.0-py3-none-any.whl |
|---|---|
| Size | 170.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3386ca789bda70802fbc46517eb61d07c18f7c2ab160b8cd4d034575d5c21557
|
|
BLAKE2b-256 checksum How to use checksums |
9858204a9dda61043484a63e83106b8a7c1a30a793cc7399a398138c642599c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|