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')
task1 = tw.add_task(task1) # adds task1 and updates index/uuid fields
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(task1.uuid)
task1 = tw.get_task(task1.uuid)
print(task1.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.0.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.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytaskwarrior-0.4.0.tar.gz
Algorithm Hash digest
SHA256 870b20c66daacdff9a3a6b0c0574f39e741f3d4c859c25984cb75259eea8a3f9
MD5 6329c3bc3eb35ee39f7340f0f7f77035
BLAKE2b-256 591b22dc534eae72b55cf140e5853cb369a71521b777897cae7664e9fa8a59c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytaskwarrior-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d5cb9e1bcef1056b8e7c499e59c205b4122750a742a87e705ba137176b71fd
MD5 3e5e1970a27b91bf5e6bd5475d89fb65
BLAKE2b-256 e94a164fe8a0f5c221f1cfb8348a6bfa8313e8b46df5179c9e963024671b1550

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