Skip to content

Instantly share code, notes, and snippets.

View lstrgiang's full-sized avatar

Giang Lê lstrgiang

  • Remote Software Engineer
  • HCMC, Vietnam
View GitHub Profile
@andir
andir / tasks_to_ical.py
Created August 18, 2016 14:46
convert taskwarrior tasks to ical entries when they have a scheduled date
#!/usr/bin/env python3
import os.path
from ics import Calendar, Event
import subprocess
import json
def read_tasks():
output = subprocess.check_output(['task', 'export'])
for task in json.loads(output.decode('utf-8')):
if task['status'] == 'completed':