Skip to main content

taskpeasant

taskpeasant logo

Taskwarrior logic, ported to Python — as close as we could get. A YAML-native, pure-Python task engine for local-first apps and platforms where the Taskwarrior binary is unavailable (e.g. native Windows).

Built by analogtrsh studio as the native task backend for Studio OS on Windows, where Taskwarrior is awkward to install. Released as GPL-3.0-or-later — the same license as Taskwarrior, whose open-source code is the reference for TaskPeasant's behaviour, defaults, and output shape.


Why

Taskwarrior is excellent — but it's a C++ binary, and on Windows it lives behind WSL or a brittle MSYS2 build. If your app already speaks YAML and lives on the filesystem, you don't need any of that. TaskPeasant re-implements the Taskwarrior model in pure Python:

  • The data model — UUID, status, tags, due/scheduled/wait/until, depends, annotations, projects, priorities, UDAs, recurrence (opt-in)
  • The CLI grammar — task add, task 3 done, task +work list, due:eom, attribute modifiers (due.before:eow, description.word:fix), boolean filter expressions, ID ranges, /regex/
  • The report engine — every TW built-in report (next, list, ls, long, all, ready, overdue, waiting, blocked, …) plus custom reports defined in config, with TW's column formats and sort specs
  • The graphical reports — burndown.daily/weekly/monthly, history/ghistory (daily→annual), calendar, summary, stats, timesheet
  • The urgency polynomial — Taskwarrior's real formula with configurable urgency.* coefficients
  • The config system — taskrc files, rc.key=value overrides, color rules, aliases, contexts, UDAs
  • The lifecycle — undo, duplicate, purge, log, append/prepend, denotate, import/export (TW wire JSON), task edit
  • All persisted as plain YAML — diffable, git-friendly, no daemon, no DB

See docs/parity.md for the full feature matrix against Taskwarrior, including the honest list of gaps (sync is intentionally out — TaskPeasant is local-first).

Install

pipx install taskpeasant

pipx installs tp as a global command without touching your system Python. If you don't have pipx: pip install pipx or brew install pipx.

For embedding in a host app:

pip install taskpeasant
# or, during development:
pip install -e ../taskpeasant

The CLI installs as tp (and taskpeasant). If TaskPeasant is the only task tool on the machine, alias task=tp completes the illusion — we deliberately don't claim the task name so a real Taskwarrior install can coexist.

Quickstart — CLI

export TASKPEASANT_FILE=~/tasks/work.yaml

tp add Write the pitch deck +work project:studio due:tomorrow priority:H
tp add Fix boiler +home due:-2d
tp 2 start
tp next                          # TW's urgency-ranked report
tp +home list                    # filters compose with any report
tp due.before:eow ready          # attribute modifiers, TW date synonyms
tp 1 done
tp undo                          # take that back
tp burndown.weekly               # graphical reports
tp summary
tp rc.report.mine.columns=id,project,description.desc mine   # custom report

tp is the whole command — there is no task word to type. Taskwarrior muscle memory still works, though: a leading task (tp task add …) is accepted and ignored.

Quickstart — embedded

from taskpeasant import execute_command, read_tasks, cmd_add, Taskrc

yaml_path = "/path/to/your/tasks.yaml"

# The TW-style CLI parser returns plain text for your terminal widget:
print(execute_command("task add render the final shot +urgent due:tomorrow", yaml_path))
print(execute_command("task next", yaml_path))
print(execute_command("task +urgent export", yaml_path))    # TW wire JSON

# Optional: hand it a config with custom reports / urgency / colors
conf = Taskrc({"report.kanban.columns": "id,project,description.desc",
               "report.kanban.filter": "+ACTIVE"})
print(execute_command("task kanban", yaml_path, config=conf))

# …or call the Python API directly:
cmd_add(yaml_path, "another task", tags=["render"], due="2026-06-25")
tasks = read_tasks(yaml_path)

Storage

TaskPeasant reads and writes a single top-level key, taskpeasant_tasks:, inside any YAML file you point it at:

taskpeasant_tasks:
  - uuid: 8c2f1a3b-...
    description: render the final shot
    status: pending
    entry: 2026-06-19T14:30:00Z
    tags: [urgent]
    due: 2026-06-20T00:00:00Z

It will never touch any other key, which means you can embed it inside a YAML file that already carries project metadata, config, or Taskwarrior context tags. The undo journal lives in a sidecar file (<file>.undo) for the same reason. See docs/storage.md and docs/BACKWARDS_COMPAT.md for the contract.

Configuration

TaskPeasant reads a Taskwarrior-style taskrc (from $TASKPEASANT_TASKRC, $TASKRC, ~/.taskpeasantrc, or $XDG_CONFIG_HOME/taskpeasant/taskrc):

default.command=next
urgency.user.tag.next.coefficient=15.0
report.kanban.columns=id,project,description.desc
color.overdue=bold red
alias.rm=delete
context.work=+work
recurrence=on          # opt-in; read BACKWARDS_COMPAT.md first if embedding

Everything can also be passed per-invocation as rc.key=value, exactly like Taskwarrior. task show prints the effective config.

Status

Beta. The public API and storage contract are frozen (see docs/BACKWARDS_COMPAT.md) and guarded by a test suite. Feature coverage against Taskwarrior is tracked in docs/parity.md.

License

GPL-3.0-or-later. See LICENSE.

Coffee and contributing

I maintain this repo completely for fun and will continue to build it out, I would never say no to coffee though! ;)

Ko-fi

The best way to help the repo though is contributing every issue, pr and snippet is very welcome! Read the contribution guide for the detailsss

Metadata

Release files for taskpeasant 0.5.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 taskpeasant 0.5.0
File Size Uploaded Provenance Actions
taskpeasant-0.5.0.tar.gz 115.1 kB With provenance Details for taskpeasant-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for taskpeasant 0.5.0
File Interpreter ABI Platform Actions
taskpeasant-0.5.0-py3-none-any.whl Python 3 none any Details for taskpeasant-0.5.0-py3-none-any.whl

Total release size: 206.5 kB

Release files / taskpeasant-0.5.0.tar.gz

Download URL taskpeasant-0.5.0.tar.gz
Size 115.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c974259bd9767146006c742cda8e9a6ce800cc882abb8feac4ba964ce20c51a3
BLAKE2b-256 checksum
How to use checksums
70592d564d5dfb76cd8809f247b60c7d0f00b145863f4353222588142488ecfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / taskpeasant-0.5.0-py3-none-any.whl

Download URL taskpeasant-0.5.0-py3-none-any.whl
Size 91.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28ee88a9a11d9f00305be9f2920519c62526dd9c2199663641f52c689721cc98
BLAKE2b-256 checksum
How to use checksums
33f476a4d77a937bedec813ca09261cf199c3798cdcbbfb105aed2a5ad49ceb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for taskpeasant 0.5.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for taskpeasant-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

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