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.6.tar.gz
(16.1 kB
view details)
File details
Details for the file taskw-0.1.6.tar.gz.
File metadata
- Download URL: taskw-0.1.6.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58b2303b7d50a406fb18aa708bb9369f91ded388aeeef0f9cfe2763673a0a118
|
|
| MD5 |
63ab0e88b73cae20f67ef8967e346be5
|
|
| BLAKE2b-256 |
0528b31f2db1310773a2233d6783ccf2f0446729cd9b3b92d78d4fe9fbd4244e
|