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.0.0.tar.gz (24.7 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.0.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytaskwarrior-1.0.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.18

File hashes

Hashes for pytaskwarrior-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b0b50813eb3c0c8973f4607b7b052c37809eb2ea5ad00c517fba9b0bec3e1975
MD5 6483373eccfa5d77ebf4f70de33bf13e
BLAKE2b-256 5a540d97a27d70a41ec7c548749e508e90cad167858c3921fe1907972af93af5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c77dbb00ffe474ccdc48988bdc49734274bf1fee4b067151bb984602c5a1f3e
MD5 0bc298e0fd3f6a674b5384739bc8004c
BLAKE2b-256 cad5e47d24686585e5593b2ce45b416701a4394a386a4a7c55ee25b6b9864c32

See more details on using hashes here.

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