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
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.
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.
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 firstname.lastname@example.org to take over maintaining of icalendar. Nobody objected and since version 2.2 we are back to development.
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%
EXDATE and RDATE now returns a vDDDLists object, which contains a list of vDDDTypes objects. This is do that EXDATE and RDATE can contain lists of dates, as per RFC.
*Note!*: This change is incompatible with earlier behavior, so if you handle EXDATE and RDATE you will need to update your code.
When createing a vDuration of -5 hours (which in itself is nonsensical), the ical output of that was -P1DT19H, which is correct, but ugly. Now it’s ‘-PT5H’, which is prettier.
moved code to codespeak.net subversion.
reorganized package structure so that source code is under ‘src’ directory. Non-package files remain in distribution root.
redid doc/.py files as doc/.txt, using more modern doctest. Before they were .py files with big docstrings.
added test.py testrunner, and tests/test_icalendar.py that picks up all doctests in source code and doc directory, and runs them, when typing:
renamed iCalendar to lower case package name, lowercased, de-pluralized and shorted module names, which are mostly implementation detail.
changed tests so they generate .ics files in a temp directory, not in the structure itself.
Copyright (c) 2012-2013, Plone Foundation All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|icalendar-3.11.4-py2.py3-none-any.whl (76.0 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||May 10, 2017|
|icalendar-3.11.4.tar.gz (79.6 kB) Copy SHA256 Checksum SHA256||–||Source||May 10, 2017|