rfc 5545 parser in python
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src
CHANGES.txt
README.md
release-annum-2-pypi
setup.cfg
setup.py

README.md

============================== pyICSParser - ICALENDAR Parser

pyICSParser is an icalendar parser (parser for .ics or ical parser files) as defined by RFC5545 (previously RFC2445) into typed structure and returns json structure with explicit dates [[dates, description, uid]] for each instance

Typical usage for explicit date calculation:

#!/usr/bin/env python

from pyICSParser import ical

mycal = ical.ics(start,end)
#start and end are string objects of yyyymmdd type
mycal.local_load(file)
#file being a string for the local path to the icalendar file
mycal.parse_loaded()
mycal.flatten()
dates = sorted(mycal.flat_events)
#dates will contain the json with all explicit dates of the events spec'ed by the icalendar file

Versions

  • Pre-alpha -v0.0.1: first pre-alpha

    -v0.0.27: fixed the dtstart to dtend problem for holiday

  • alpha -0.4.x: first fully tested handling days - remains to be done is handling of time of events (test vectors are actual icalendar files)

    -0.5.x: added support for EXDATE

    -0.6.x: added support for DURATION and when DTEND no present

Future developments

  1. handle of datetime (currently only handles date)
  2. handle of multiple EXRULE, RRULE as per icalendar spec

Thanks