Created
January 23, 2013 06:34
-
-
Save dirkk0/4602620 to your computer and use it in GitHub Desktop.
process tasks from taskwarrior in python
(via http://taskwarrior.org/boards/1/topics/2397
wanted to post this but can't login)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on the shell, do: | |
# task rc.json.array=yes export > del.json | |
import json | |
tasks = json.load(open('del.json', 'r')) | |
for task in tasks: | |
print task["uuid"] | |
print task["description"] | |
# this doesn't work yet | |
#import os | |
#line = 'task rc.json.array=yes export' | |
#output = os.popen(line).read() | |
#for task in output: | |
# print task["uuid"] | |
# print task["description"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment