]> git.madduck.net Git - etc/taskwarrior.git/blob - README.rst

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

6cf60d6daf3a02b86708864baa6f726264e595db
[etc/taskwarrior.git] / README.rst
1 tasklib
2 =======
3
4 A Python library for interacting with taskwarrior_ databases.
5
6 Requirements
7 ------------
8
9 Before installing ``tasklib``, you'll need to install taskwarrior_.
10
11 Installation
12 ------------
13
14 Install via pip::
15
16     pip install tasklib
17
18 Usage
19 -----
20
21 .. source-code:
22
23     >>> from tasklib.task import TaskWarrior, PENDING
24
25     >>> tw = TaskWarrior('/home/rob/.task')
26     >>> tasks = tw.get_tasks(status=PENDING)
27     >>> tasks
28     ['Tidy the house', 'Learn German']
29     >>> type(tasks[0])
30     <class 'tasklib.task.Task'>
31     >>> task[0].done()
32
33
34 .. _taskwarrior: http://taskwarrior.org