Git Product home page Git Product logo

icalendar's Introduction

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.

Compatible with

Python 2.6 and 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.

Roadmap

  1. Internally Unicode will be used exclusively.
  2. On API Functions, accept or return Unicode or en/decoded strings.
  3. This will make the 3.4 Release.
  4. API change: API calls also only accept/return Unicode.
  5. This will make the 4.0 release.

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:

Name                                                           Stmts   Miss  Cover
----------------------------------------------------------------------------------
.tox/py27/lib/python2.7/site-packages/icalendar/__init__           6      0   100%
.tox/py27/lib/python2.7/site-packages/icalendar/cal              223      8    96%
.tox/py27/lib/python2.7/site-packages/icalendar/caselessdict      55      2    96%
.tox/py27/lib/python2.7/site-packages/icalendar/parser           181     18    90%
.tox/py27/lib/python2.7/site-packages/icalendar/parser_tools      19      0   100%
.tox/py27/lib/python2.7/site-packages/icalendar/prop             521     59    89%
.tox/py27/lib/python2.7/site-packages/icalendar/tools             12      0   100%
----------------------------------------------------------------------------------
TOTAL                                                           1017     87    91%

icalendar's People

Contributors

barakmich avatar cdevienne avatar danstovall avatar dbstovall avatar dmikurube avatar faassen avatar fitnr avatar frog32 avatar garbas avatar georgevreilly avatar jezdez avatar kanarip avatar kleink avatar leo-naeka avatar martinmelin avatar mikaelfrykholm avatar nikolaeff avatar offby1 avatar paxan avatar pferreir avatar regebro avatar rembane avatar rnixx avatar sidnei avatar spanktar avatar tgecho avatar thet avatar wichert avatar witsch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.