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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duty-1.10.1.tar.gz | 146.8 kB | Without provenance | Details for duty-1.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duty-1.10.1-py3-none-any.whl | Python 3 | none | any | Details for duty-1.10.1-py3-none-any.whl |
Total release size: 317.6 kB
Release files / duty-1.10.1.tar.gz
| Download URL | duty-1.10.1.tar.gz |
|---|---|
| Size | 146.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d40bc4baf1d9375ba4f7456eceb510f35152aae2992ef54f7718d71dc6f7f4e
|
|
BLAKE2b-256 checksum How to use checksums |
5067fa79eea27ca6344a67f012632613e83be6ba5c6b6731e46b9e280bc65da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / duty-1.10.1-py3-none-any.whl
| Download URL | duty-1.10.1-py3-none-any.whl |
|---|---|
| Size | 170.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0c30fc9d9489f3b519aacd5062104ac9fe9f186574e7099941d5b4452e778f
|
|
BLAKE2b-256 checksum How to use checksums |
35300edc73a333dc738842e99ed4d8604a49603169853cc01211e242848e3b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for duty 1.10.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.