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-1.2.0.tar.gz (28.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.2.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytaskwarrior-1.2.0.tar.gz
  • Upload date:
  • Size: 28.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.2.0.tar.gz
Algorithm Hash digest
SHA256 fe05946d2b15fcd680e16ceea698eef7763d1f845e5721625106382ec6a4d579
MD5 f1d75ce32d95c9a76a47a9c2e8b29b4a
BLAKE2b-256 153efbc1dfca04e5b22c8caaf3ae5f64bacea938ada0084838cd090dd10b3482

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytaskwarrior-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f427e28d918353df564baba4436e1378d9113edddcdbb849e42290fff139561
MD5 9dc160eab48cf46e7efea9ff18720241
BLAKE2b-256 d8657263d88636afcdce286fcc6569dd87598a66dd1e2387ed146caa6944e18b

See more details on using hashes here.

Provenance

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