Skip to main content

Taskwarrior wrapper python module

Project description

pytaskwarrior

Python 3.12+ License: MIT Code style: ruff Tests Coverage PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytaskwarrior-2.0.1.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytaskwarrior-2.0.1-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file pytaskwarrior-2.0.1.tar.gz.

File metadata

  • Download URL: pytaskwarrior-2.0.1.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytaskwarrior-2.0.1.tar.gz
Algorithm Hash digest
SHA256 c6b2ac854367a34a1e7b499b9d1c7a898009b507f9aa5f95812b6034230113d0
MD5 7a288f74be219beba90476ecfb5cde60
BLAKE2b-256 95c9e8dafc18c0b4a85d320ed025e9360b382b8e620b20ce5da96f7fe2b4e3a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytaskwarrior-2.0.1.tar.gz:

Publisher: release.yml on sznicolas/pytaskwarrior

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytaskwarrior-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytaskwarrior-2.0.1-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.12

File hashes

Hashes for pytaskwarrior-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac959f7c7ec84264fce585346b40e621b5ccf7614275afdeb5041c57d58d27a
MD5 1562a0ec522b510e60f7a1ac967bee23
BLAKE2b-256 dc4cbed0a22fae07d20b7ab86920d1967d88acdd37abe3006cb14cc9cf487cca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytaskwarrior-2.0.1-py3-none-any.whl:

Publisher: release.yml on sznicolas/pytaskwarrior

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page