Taskwarrior wrapper python module
Project description
pytaskwarrior
A modern Python wrapper for TaskWarrior, the command-line task management tool.
Production-ready with 164 tests (96% coverage), strict type checking, and professional-grade code quality. Zero linting errors, full async-safe subprocess handling, PEP 561 type hints for IDE support, and a consistent exception hierarchy.
Features
- Full CRUD operations for tasks
- Type-safe with Pydantic models
- Context management
- UDA (User Defined Attributes) support
- Recurring tasks and annotations
- Consistent exception hierarchy (
TaskNotFound,TaskValidationError,TaskOperationError,TaskConfigurationError, …)
Requirements
- Python 3.12+
- TaskWarrior 3.4+ installed
Installation
pip install pytaskwarrior
Quick Start
from taskwarrior import TaskWarrior, TaskInputDTO, Priority
tw = TaskWarrior()
# Create a task
task = TaskInputDTO(
description="Important meeting",
priority=Priority.HIGH,
project="work",
due="friday"
)
added = tw.add_task(task)
# Get all pending tasks
for t in tw.get_tasks():
print(f"[{t.priority or '-'}] {t.description}")
# Complete a task
tw.done_task(added.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-2.0.0.tar.gz.
File metadata
- Download URL: pytaskwarrior-2.0.0.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d033ff954f77f6764dc9eb7bff6b83f6c584c7d0b8b7a8aa0f2b4afc107d22b
|
|
| MD5 |
5889f216154f8243427f40cfa1aa28d1
|
|
| BLAKE2b-256 |
c01ba57174acad940b1ef95c39cf300db0d6a43ad7f96247b535818fbd9e1da4
|
Provenance
The following attestation bundles were made for pytaskwarrior-2.0.0.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-2.0.0.tar.gz -
Subject digest:
7d033ff954f77f6764dc9eb7bff6b83f6c584c7d0b8b7a8aa0f2b4afc107d22b - Sigstore transparency entry: 1243739305
- Sigstore integration time:
-
Permalink:
sznicolas/pytaskwarrior@73f1719cef0d2feb4234d44c2789d74d33e69065 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/sznicolas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73f1719cef0d2feb4234d44c2789d74d33e69065 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytaskwarrior-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pytaskwarrior-2.0.0-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3302c3393093ae08e8bf26b819271619a1ef566f48a2951f077bc0013d827432
|
|
| MD5 |
faa08e4e076300c0f977ac362aea62eb
|
|
| BLAKE2b-256 |
19a119dc28740d0bcbf1c6abfac951d24b698ffdc8c71b4409b80ef208f7726d
|
Provenance
The following attestation bundles were made for pytaskwarrior-2.0.0-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-2.0.0-py3-none-any.whl -
Subject digest:
3302c3393093ae08e8bf26b819271619a1ef566f48a2951f077bc0013d827432 - Sigstore transparency entry: 1243739317
- Sigstore integration time:
-
Permalink:
sznicolas/pytaskwarrior@73f1719cef0d2feb4234d44c2789d74d33e69065 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/sznicolas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73f1719cef0d2feb4234d44c2789d74d33e69065 -
Trigger Event:
push
-
Statement type: