Skip to main content

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

Sponsors

Silver sponsors

FastAPI

Bronze sponsors

Nixtla


ofek samuelcolvin tlambert03 ssbarnea femtomc cmarqu kolenaIO ramnes machow BenHammersley trevorWieland MarcoGorelli analog-cbarber OdinManiac rstudio-sponsorship schlich butterlyn livingbio NemetschekAllplan EricJayHartman 15r10nk activeloopai roboflow cmclaughlin RapidataAI rodolphebarbanneau theSymbolSyndicate blakeNaccarato ChargeStorm Cusp-AI

And 4 more private sponsor(s).

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)

Source distribution for duty 1.10.0
File Size Uploaded
duty-1.10.0.tar.gz 146.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for duty 1.10.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page