--- /dev/null
+#!/usr/bin/env python3
+
+from icalendar import Calendar
+
+def format_cal(start, end, description):
+ str = "Start: {:%Y-%m-%d %H:%M}\n".format(start)
+ str += "End: {:%Y-%m-%d %H:%M}\n\n".format(end)
+ if description is not None:
+ str += description
+
+ return str
+
+
+with open('/dev/stdin', 'r') as f:
+ cal = Calendar.from_ical(f.read())
+
+for c in cal.walk():
+ if c.name == "VEVENT":
+ print(format_cal(
+ c.get('dtstart').dt,
+ c.get('dtend').dt,
+ c.get('description')))