Skip to main content

This is a python API for the taskwarrior command line tool.

Installing

Using taskw requires that you first install taskwarrior.

Installing is easy with pip:

$ pip install taskw

Examples

Looking at tasks

>>> from taskw import load_tasks
>>> tasks = load_tasks()
>>> tasks.keys()
['completed', 'pending']
>>> type(tasks['pending'])
<type 'list'>
>>> type(tasks['pending'][0])
<type 'dict'>

Adding tasks

>>> from taskw import task_add
>>> task_add("Eat food")
>>> task_add("Take a nap", priority="H", project="life")

Completing tasks

>>> from taskw import task_done
>>> task_done(46)

Looking at the config

>>> from taskw import load_config
>>> config = load_config()
>>> config['data']['location']
'/home/threebean/.task'
>>> config['_forcecolor']
'yes'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskw-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file taskw-0.1.1.tar.gz.

File metadata

  • Download URL: taskw-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for taskw-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ee75180ae30e40795e7d8bd23989711ef5b7d628f503c2afa7dd37ac394e3b31
MD5 a3c22c6be463d96841647f0a2c137aa8
BLAKE2b-256 0e3923f8ac6da905798dce080e4e1ff50e1dcf9a4012129cb3f0a16be0d226c5

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 Sentry Error logging StatusPage Status page