Skip to main content

Taskwarrior wrapper python module

Project description

pytaskwarrior

Description

Automate your TaskWarrior interactions with this wrapper.

Installation

pip install pytaskwarrior

Use taskwarrior module

You MUST have a taskrc file that is configured to allow task command without confirmation. By default pytaskrc in the current directory is created and used. You can set TASKRC and TASKDATA in your environment.

from taskwarrior import TaskWarrior, Task, Priority

tw = TaskWarrior()
task1 = Task(description='First task')
twtask1 = tw.add_task(task1) # adds task1 and returns a TWTask, like a Task but with read only fields like index/uuid
task2 = Task(
        description="🆘 Write PyTaskwarrior API documentation",
        due='P1W',
        priority=Priority.HIGH,
        project="pytaskwarrior",
        tags=["docs", "dev"]
)
print(tw.get_tasks(['status:pending']))
tw.add_task(task2)
tw.done_task(twtask1.uuid)
twtask1 = tw.get_task(task1.uuid)
print(twtask1.status)

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

Uploaded Source

Built Distribution

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

pytaskwarrior-0.4.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytaskwarrior-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fc7e6fc9e7bd1fd52aa516d2aab31a514362e3beabd74a0e587d9f0c7a70d27d
MD5 cca54ffd673e631c701eb32fe1f5ef74
BLAKE2b-256 5a4c8165db36a66d7a82c23869145ddc62ec0ab39aa1e3cee26d6c12b7a35908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf1cd27bf7a3a08b8fba36d60d86a932119cee3a9a381725b408b1514c8a11d
MD5 a3e01e9907c73e9cf7a4c2381d9f16a0
BLAKE2b-256 79224379362d0fb9013c944aa6fd4b0c5fd63832322ec85ddff80a3f4605ac7c

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