A simple task runner.
Project description
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...".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
duty-1.4.3.tar.gz
(121.8 kB
view details)
Built Distribution
duty-1.4.3-py3-none-any.whl
(105.1 kB
view details)
File details
Details for the file duty-1.4.3.tar.gz
.
File metadata
- Download URL: duty-1.4.3.tar.gz
- Upload date:
- Size: 121.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f3955b6d0ce3779b7389daf7f1de5d0cd603fbf56983480b568baedf90edff |
|
MD5 | 1106d7ae502f8647401da6015299bfdd |
|
BLAKE2b-256 | 3e728f2bd5bde1796283b10217c71dbaec5b0b2d02e4348f6c299858a280154d |
File details
Details for the file duty-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: duty-1.4.3-py3-none-any.whl
- Upload date:
- Size: 105.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84094a5df227fcaf158c90e00d13b16e3cfb45e53c789f32e858e2e514ab3244 |
|
MD5 | ac2909d506aeb8dfcf2fffb4f325e1e9 |
|
BLAKE2b-256 | de9785ec7ee0dc82c30988b5726e5ced3d13fb48010de96d8c653265102ab528 |