Skip to main content

Python icalendar (rfc5545) parser

Project description

Original repository (GitHub) - Bugtracker and issues (GitHub) - PyPi package (ics) - Documentation (Read The Docs).

https://travis-ci.org/C4ptainCrunch/ics.py.png?branch=master Coverage Apache 2 License

Ics.py is a pythonic and easy iCalendar library. It’s goals are to read and write ics data in a developper friendly way.

iCalendar is a widely-used and useful format but not user friendly. Ics.py is there to give you the ability of creating and reading this format without any knowledge of it.

It should be able to parse every calendar that respects the rfc5545 and maybe some more… It also outputs rfc compliant calendars.

iCalendar (file extension .ics) is used by Sunbird, Google Calendar, Apple Calendar, Android…

Ics.py is available for Python>=2.7 and Python>=3.3 and is Apache2 Licensed.

Quickstart

$ pip install ics
>>> from ics import Calendar, Event
>>> c = Calendar()
>>> e = Event()
>>> e.name = "My cool event"
>>> e.begin = '20140101 00:00:00'
>>> c.events.append(e)
>>> c.events
[<Event 'My cool event' begin:2014-01-01 00:00:00 end:2014-01-01 00:00:01>]
>>> with open('my.ics', 'w') as my_file:
>>>     my_file.writelines(c)
>>> # and it's done !

More examples are available in the documentation.

Documentation

All the documentation is hosted on readthedocs.org and is updated automatically at every commit.

Contribute

Contribution are welcome of course! For more information, see contributing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ics-0.3.tar.gz (37.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ics-0.3-py2.py3-none-any.whl (19.1 kB view details)

Uploaded Python 2Python 3

ics-0.3-py2.7.egg (16.4 kB view details)

Uploaded Egg

File details

Details for the file ics-0.3.tar.gz.

File metadata

  • Download URL: ics-0.3.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ics-0.3.tar.gz
Algorithm Hash digest
SHA256 77bf0e80f71676e5eb6d44b416b37765cf94957073ab77f2343193fb160713f1
MD5 f283fa0df9cb81e7d37cdafdd9b6d534
BLAKE2b-256 685c9e07e43abd434404a5308b50379c02ce4d7832c4a9a6c76d7edd398ccd2d

See more details on using hashes here.

File details

Details for the file ics-0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: ics-0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ics-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ded5dbff657d9055843a7f7a4d6864f3f1f60f48c42be0a69eebd1e0f0f925cf
MD5 0a08d4c275c81d9a96aa3a8800734f26
BLAKE2b-256 bb2692f4ced31cdcf27b7cfbec62bf22903d31a8456d439ffd78d4a6f1c87cf4

See more details on using hashes here.

File details

Details for the file ics-0.3-py2.7.egg.

File metadata

  • Download URL: ics-0.3-py2.7.egg
  • Upload date:
  • Size: 16.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ics-0.3-py2.7.egg
Algorithm Hash digest
SHA256 b29d62aef1eeef19553721a6c35d5de1d607137689bf6e2be9e5f1727dbae868
MD5 7a5f96f3ff514120b3cbb3554ea2c034
BLAKE2b-256 fb881b999353a0c29995ee80a539df9d67db958185e328424821bafc3f6d2c4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page