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.3.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.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytaskwarrior-0.4.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e5b463a42ea1e7bf65789ee2b4ce4b11864023fdef0e6a24346c89264f03c7ba
MD5 949d5810e071643ece16478ab6745cb1
BLAKE2b-256 cb5cc8d4a37966f7af89b7b8e740f56bbffb4d6c027bf4246b5f467c1d916870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 932f9eb01bb94288e6223c77c2d8cb38a9fb01a19fe898d338b8bcac5d0f42ce
MD5 74f8c78c89baaa352cfeec3dc974ce34
BLAKE2b-256 28c8e1eedb80ab513bfa8acd25de4256900fc8a1d617b68505b01e6099cac5f8

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