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.2.tar.gz (10.0 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytaskwarrior-0.4.2.tar.gz
Algorithm Hash digest
SHA256 03d7512c6c5b84859f88f544ecfc2bca857274827b34aaf545b1acd8ed36b7b6
MD5 bb1ee18e4cf69809df588dc382f26e36
BLAKE2b-256 f2dc292004b740a2b6a7aca86092f0960dc0d1554df6d685b77bb1d8c6d0cf8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1f5182dd1e43f449339905416a9dd37c74597f303c4f4b76f5c38fdc883321
MD5 5aab340eab97ec298b2ee573ad3ca07c
BLAKE2b-256 bc401fd62dca6a0af742c67bf638476cd210cd880ce0f52ad84b822df06fcbfa

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