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.

v1.0.0: Production-ready with 132 tests (96% coverage), strict type checking, and professional-grade code quality. Zero linting errors, full async-safe subprocess handling, and PEP 561 type hints for IDE support.

Features

  • ✅ Full CRUD operations for tasks
  • ✅ Type-safe with Pydantic models
  • ✅ Context management
  • ✅ UDA (User Defined Attributes) support
  • ✅ Recurring tasks and annotations

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-1.1.1.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

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

pytaskwarrior-1.1.1-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytaskwarrior-1.1.1.tar.gz
Algorithm Hash digest
SHA256 daa45790b785f31d4b763299c47804d47b25bf196e6876710982d5be18ad1080
MD5 ac05dd22cedaec8de770189edf19f58f
BLAKE2b-256 2bc791bae07022b2d058247fdd0b2c13e0cac53e84f9244c846efd523a88542b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytaskwarrior-1.1.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-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytaskwarrior-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytaskwarrior-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45b489f9000d90ab7477fcfb68e92678926d06e46c02afb57b39e9d99f3e1d19
MD5 dee679961d7f20541d7eb24151af8492
BLAKE2b-256 21149351e135ed219c3a188862db24d6697bb8be0d557f7f51d35e31af2e1c7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytaskwarrior-1.1.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