Internet Calendaring and Scheduling (iCalendar) for Python
 
 
Go to file
esteele a0380b78db Preparing release 3.11.4
[ci skip]
2017-05-10 08:52:03 -04:00
docs Handle UnicodeEncodeError in Error messages. Depending on the input, I might be that instead of collecting the thrown error message, python throws a new UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 96: ordinal not in range(128). So we use the six library and unicode function to properly treat the error message before adding it to the stack of already collected error messages. 2016-11-22 21:11:16 +01:00
src/icalendar Preparing release 3.11.4 2017-05-10 08:52:03 -04:00
.gitignore add pip-selfcheck.json to .gitignore 2016-02-05 12:48:44 +01:00
.travis.yml Also test on python 3.5 and 3.6. 2016-12-30 15:16:03 +01:00
CHANGES.rst Preparing release 3.11.4 2017-05-10 08:52:03 -04:00
CONTRIBUTING.rst Whitespaces cleanup 2014-08-26 00:55:26 +02:00
LICENSE.rst housekeeping 2013-03-15 16:34:42 +01:00
MANIFEST.in Exclude editor backup files from egg distributions. Fixes #144. 2014-07-22 12:10:27 +02:00
README.rst Drop requirement for setuptools package from setup.py 2017-01-24 07:06:08 -08:00
TODO.rst update docs TODO 2013-04-24 12:15:53 +02:00
bootstrap.py new version 2014-06-02 11:21:18 +02:00
buildout.cfg Whitespaces cleanup 2014-08-26 00:55:26 +02:00
requirements_docs.txt use sphinx_rdt_theme and document how to generate docs 2014-11-20 13:14:45 +01:00
setup.cfg Introduce Hypothesis for testing (#191) 2017-02-05 21:36:33 +01:00
setup.py Fixed RST by adding two lines to the long description. 2017-02-15 12:20:19 +01:00
tox.ini On python2.6 install unittest2 for tox. (#214) 2017-04-19 00:02:38 +02:00

README.rst

==========================================================
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: `python-dateutil`_ and `pytz`_.
    :Compatible with: Python 2.6, 2.7 and 3.3+
    :License: `BSD`_

----


.. image:: https://travis-ci.org/collective/icalendar.svg?branch=master
    :target: https://travis-ci.org/collective/icalendar


Roadmap
=======

- 4.0: API refactoring



Changes in version 3.0
======================

API Change
----------

Since version 3.0 the icalendar de/serialization API is unified 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 our own UTC tzinfo implementation we use pytz UTC tzinfo object now.


About this fork which is not a fork anymore
===========================================

The 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 events to `Plone`_.

After some thoughts we (Plone developers involved with `plone.app.event`_) send
a suggestion to icalendar-dev@codespeak.net to take over maintaining of
`icalendar`_. Nobody objected and since version 2.2 we are back to development.

.. _`icalendar`: http://pypi.python.org/pypi/icalendar
.. _`plone.app.event`: http://github.com/plone/plone.app.event
.. _`Plone`: http://plone.org
.. _`python-dateutil`: https://github.com/dateutil/dateutil/
.. _`pytz`: http://pypi.python.org/pypi/pytz
.. _`RFC`: http://www.ietf.org/rfc/rfc5545.txt
.. _`BSD`: https://github.com/collective/icalendar/issues/2


Test Coverage Report
====================

Output from coverage test::

    Name                           Stmts   Miss  Cover
    --------------------------------------------------
    src/icalendar/__init__             4      0   100%
    src/icalendar/cal                312      7    98%
    src/icalendar/caselessdict        65      7    89%
    src/icalendar/compat               1      0   100%
    src/icalendar/parser             193      5    97%
    src/icalendar/parser_tools        20      0   100%
    src/icalendar/prop               540     62    89%
    src/icalendar/timezone_cache       1      0   100%
    src/icalendar/tools               16      0   100%
    --------------------------------------------------
    TOTAL                           1152     81    93%