Skip to content

pawamoy/duty

Folders and files

NameName
Last commit message
Last commit date
Oct 17, 2024
Oct 17, 2024
Mar 1, 2025
Feb 2, 2025
Mar 1, 2025
Feb 2, 2025
Feb 2, 2025
Apr 28, 2024
Oct 17, 2024
Mar 1, 2025
Apr 28, 2024
Oct 17, 2024
Oct 2, 2020
Aug 15, 2024
Oct 17, 2024
Feb 2, 2025
Feb 2, 2025
Oct 17, 2024
Feb 2, 2025

Repository files navigation

duty

ci documentation pypi version gitter

A simple task runner.

Inspired by Invoke.

demo

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...".