Skip to main content

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

Getting taskw

Installing

Using taskw requires that you first install taskwarrior.

Installing it from http://pypi.python.org/pypi/taskw is easy with pip:

$ pip install taskw

The Source

You can find the source on github at http://github.com/ralphbean/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.4.tar.gz (16.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for taskw-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8f6d7b031b7df70ebecd7d10f3c708c5e917299707bc2bf711cb2e3a427d1439
MD5 774ca588edceae6930d224ca0c7efcf8
BLAKE2b-256 82c735d4b25cda0acf19918e24b99db581301ef89b42be18a904e945a91c8d73

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