Skip to main content

Light and easy iCalendar event reader

Project description

release lic ci coverage


Light and easy iCalendar event reader

No fancy stuff, just iCalendar (.ics) events reading.

  • Requires Python 3.6+;
  • Uses namedtuple for event representation;
  • Features iterative event reading to be fast and minimize memory usage.


from icalendar_light.toolbox import Calendar

for event in Calendar.iter_events_from_file('my_calendar.ics'):

# Or get events upcoming in next 5 days from iCalendar represented as lines:
lines = []  # Let's imagine this one is not empty %)
events = Calendar.iter_events_upcoming(lines, days_forward=5)


Requires click package (can be installed with: pip install icalendar_light[cli]).

; Show upcoming event for next 90 days
$ icalendar_light upcoming my_calendar.ics --days 90

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for icalendar_light, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size icalendar_light-1.0.0.tar.gz (11.5 kB) File type Source Python version None Upload date Hashes View
Filename, size icalendar_light-1.0.0-py2.py3-none-any.whl (6.8 kB) File type Wheel Python version 3.8 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page