Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Created January 23, 2013 06:34
Show Gist options
  • Save dirkk0/4602620 to your computer and use it in GitHub Desktop.
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)
# 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