Taskwarrior wrapper python module
Project description
pytaskwarrior
A modern Python library for TaskWarrior v3.x task management.
No task binary required. pytaskwarrior uses
taskchampion3-py-dev — Rust bindings
to the taskchampion storage engine — for direct, high-performance SQLite access.
Features
- No external binary — reads/writes TaskWarrior's SQLite database directly
- Full CRUD operations — Create, read, update, delete tasks
- Type-safe — Pydantic models with full type hints
- Context management — Define, apply, and switch contexts (reads/writes
.taskrc) - UDA support — User Defined Attributes
- Virtual tags —
+OVERDUE,+DUE,+TODAY,+WEEK,+BLOCKED,+READY, and 20+ more - Date expressions —
due.before:tomorrow,due.after:eom, compound expressions (now + P3D) - Recurring tasks — Full recurrence support
- Annotations — Add notes to tasks
- Sync — Remote and local directory sync via taskchampion protocol
- Optional CLI fallback — Pass
task_cmd="task"to use the classic CLI adapter
Requirements
- Python 3.9+
taskchampion3-py-dev>= 3.0.1.3 (installed automatically)
The task binary is not required for the default adapter.
Installation
pip install pytaskwarrior
Quick Start
from taskwarrior import TaskWarrior, TaskInputDTO, Priority
# No binary needed — uses taskchampion SQLite backend directly
tw = TaskWarrior()
# Create a task
task = tw.add_task(TaskInputDTO(
description="Finish project report",
priority=Priority.HIGH,
project="work",
tags=["urgent"],
due="friday",
))
# Query tasks
for t in tw.get_tasks("project:work +READY"):
print(f"[{t.priority or '-'}] {t.description}")
# Virtual tag filtering
overdue = tw.get_tasks("+OVERDUE")
due_soon = tw.get_tasks("due.before:eow")
# Complete a task
tw.done_task(task.uuid)
Documentation
Full documentation: GitHub Repository
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytaskwarrior-3.0.0rc3.tar.gz.
File metadata
- Download URL: pytaskwarrior-3.0.0rc3.tar.gz
- Upload date:
- Size: 49.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73c3f84109f985ed04883161bb1fd4db3ab9ad75100d85880dcb266343b15210
|
|
| MD5 |
4e7fc830067d6d7919864d72394989b7
|
|
| BLAKE2b-256 |
85b95877974f0f77efb390fa0b23d66e4bd94d2d4e463621cac2d6aebf62b9b4
|
Provenance
The following attestation bundles were made for pytaskwarrior-3.0.0rc3.tar.gz:
Publisher:
release.yml on sznicolas/pytaskwarrior
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytaskwarrior-3.0.0rc3.tar.gz -
Subject digest:
73c3f84109f985ed04883161bb1fd4db3ab9ad75100d85880dcb266343b15210 - Sigstore transparency entry: 1608901398
- Sigstore integration time:
-
Permalink:
sznicolas/pytaskwarrior@0ce601d1665a958437fb3fd61e5a0058b5e23f9a -
Branch / Tag:
refs/tags/v3.0.0rc3 - Owner: https://github.com/sznicolas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0ce601d1665a958437fb3fd61e5a0058b5e23f9a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytaskwarrior-3.0.0rc3-py3-none-any.whl.
File metadata
- Download URL: pytaskwarrior-3.0.0rc3-py3-none-any.whl
- Upload date:
- Size: 58.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e294fb89fe3c312f52c2befdbff2703630f254f3d146789a4681e88046e275
|
|
| MD5 |
700f6ef2b509e2bad1ceb68c1487d79e
|
|
| BLAKE2b-256 |
605e9e58b47c9c37aa09acc4a6431d979f342580e48bb85433b43277eca67002
|
Provenance
The following attestation bundles were made for pytaskwarrior-3.0.0rc3-py3-none-any.whl:
Publisher:
release.yml on sznicolas/pytaskwarrior
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytaskwarrior-3.0.0rc3-py3-none-any.whl -
Subject digest:
00e294fb89fe3c312f52c2befdbff2703630f254f3d146789a4681e88046e275 - Sigstore transparency entry: 1608901468
- Sigstore integration time:
-
Permalink:
sznicolas/pytaskwarrior@0ce601d1665a958437fb3fd61e5a0058b5e23f9a -
Branch / Tag:
refs/tags/v3.0.0rc3 - Owner: https://github.com/sznicolas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0ce601d1665a958437fb3fd61e5a0058b5e23f9a -
Trigger Event:
push
-
Statement type: