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.9.tar.gz (11.1 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.9-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytaskwarrior-0.4.9.tar.gz
Algorithm Hash digest
SHA256 472ed17151e9ccfebb8040fa47ade9f78ac41ad8f2459cb4cd2ea0d868ab23b2
MD5 d617d177c37208ceaec9eba084e987cd
BLAKE2b-256 69fb5c66c9547403f3695ec6578cf31e585e9d6db37aa0f7d39d1b53e9ae766a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-0.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3f672c97c812345ca4728ff5318e10da2311d6c325fd82be7d5e3216e29c2f14
MD5 820733169367003cd144d78b6a7deee0
BLAKE2b-256 8f0e2d02f112de0c2bfabff475e4c82aa5a923cce6d091f623f9270f5e28124f

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