Python bindings for your taskwarrior database
Project description
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'
Project details
Release history Release notifications | RSS feed
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.8.tar.gz
(16.2 kB
view details)
File details
Details for the file taskw-0.1.8.tar.gz
.
File metadata
- Download URL: taskw-0.1.8.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c253814b9d1fd2632ffb9028f245460ca1b906bc23982a828c538a5bd87fd064 |
|
MD5 | 888eab92dbe4a052808ecfe966b9a0f8 |
|
BLAKE2b-256 | 17f6d8ad2ded590bc40c343c6963419c6bbaf3b7deafe265dba727d9f53c12e0 |