Good question! I guess, it depends on what are you using them for.What are the recommended ways of handling .ics calendar files on FreeBSD?
import sys
from icalendar import Calendar, Event
ics_file = open(sys.argv[1],'r')
cal = Calendar.from_ical(ics_file.read())
for item in cal.walk('vevent'):
print("Summary:", item.get('summary'))
print("item.get('description'))
print("Start: ", item.decoded('dtstart').strftime("%a, %b %d, %Y %H:%M %Z"))
print("End: ", item.decoded('dtend').strftime("%a, %b %d, %Y %H:%M %Z"))
ics_file.close()