Skip to content

naeka/icalendar

 
 

Repository files navigation

Internet Calendaring and Scheduling (iCalendar) for Python

The icalendar package is a parser/generator of iCalendar files for use with Python.


Homepage:http://icalendar.readthedocs.org
Code:http://github.com/collective/icalendar
Mailing list:http://github.com/collective/icalendar/issues
Dependencies:setuptools and since version 3.0 we depend on pytz.
Tested with:Python 2.6, 2.7
License:BSD

Changes in version 3.0

API Change

Since version we unified to icalendar de/serialization API to use only to_ical (for writing an ical string from the internal representation) and from_ical (for parsing an ical string into the internal representation).

to_ical is now used instead of the methods ical, string, as_string and instead of string casting via __str__ and str.

from_ical is now used instead of from_string.

This change is a requirement for future Python 3 compatibility. Please update your code to reflect to the new API.

Timezone support

Timezones are now fully supported in icalendar for serialization and deserialization. We use the pytz library for timezone components of datetime instances. The timezone identifiers must be valid pytz respectively Olson database timezone identifiers. This can be a problem for 'GMT' identifiers, which are not defined in the Olson database.

Instead of the own UTC tzinfo implementation we use pytz UTC tzinfo object now.

About this fork which is not a fork anymore

Aim of this fork (not fork anymore, read further) was to bring this package up to date with latest icalendar RFC specification as part of plone.app.event project which goal is to bring recurrent evens to Plone.

After some thoughts we (Plone developers involved with plone.app.event) send a suggestion to [email protected] to take over mainaining of icalendar. Nobody object and since version 2.2 we are back to development.

Test Coverage Report

Output from coverage test:

lines   cov%   module   (path)
   13   100%   icalendar.__init__
  227    91%   icalendar.cal
   48    91%   icalendar.caselessdict
  166    92%   icalendar.parser
  667    90%   icalendar.prop
   16   100%   icalendar.tests.test_cases
   25    96%   icalendar.tests.test_doctests
   47   100%   icalendar.tests.test_encoding
   44    34%   icalendar.tests.test_icalendar
   13   100%   icalendar.tests.test_property_params
   51   100%   icalendar.tests.test_timezoned
   53    30%   icalendar.tools

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%