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 developer 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.

Note : it is highly likely that Python 2 support will be dropped before the 1.0 release.

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.

Testing & Docs

# tests
$ pip install -r requirements.txt
$ pip install -r dev/requirements-test.txt
$ python setup.py test

# tests coverage
$ pip install -r requirements.txt
$ pip install -r dev/requirements-test.txt
$ python setup.py test
$ coverage html
$ firefox htmlcov/index.html

# docs
$ pip install -r requirements.txt
$ pip install -r dev/requirements-doc.txt
$ cd doc
$ make html

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.4.tar.gz (50.9 kB view details)

Uploaded Source

Built Distributions

ics-0.4-py3.6.egg (53.7 kB view details)

Uploaded Egg

ics-0.4-py2.py3-none-any.whl (27.3 kB view details)

Uploaded Python 2Python 3

ics-0.4-py2.7.egg (23.0 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for ics-0.4.tar.gz
Algorithm Hash digest
SHA256 5de36fd69983bb2d16a863c51ae1d02ccc3c1e407d39464d1360fac25697735e
MD5 82d649bbe860c182fd23a1603b539220
BLAKE2b-256 f5d4e14e5b17aca858ad53210c0342fe0a4b1f46dffe3e2e31961b34ad7c4fab

See more details on using hashes here.

File details

Details for the file ics-0.4-py3.6.egg.

File metadata

  • Download URL: ics-0.4-py3.6.egg
  • Upload date:
  • Size: 53.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ics-0.4-py3.6.egg
Algorithm Hash digest
SHA256 6e35b93051facaae1f1081d991d0d7f5fe4fd8fefc6f0c0214463895a6f7dae7
MD5 87d29088a588dd7f3017d30bc7d9114d
BLAKE2b-256 28ebdd0e4d2eba7f8542b930eaa3d873ada4720269da25b609b55e446518979a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ics-0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8220f6cefd3f53231e8953acbe073313f28314fecbe77d3ffebc8ceef6ad837c
MD5 5e75bcc7ec59b455192c032777e5b613
BLAKE2b-256 c09277d5c49943a670e7721410076c2ffe2d0821140b95cdf464137c64ee6858

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ics-0.4-py2.7.egg
Algorithm Hash digest
SHA256 5ac19475cb2e191e258d7daab8af0692ed1ef9528e6a6a1074c7279cc2975423
MD5 f099e5147e4a1fe91672cad906b6f389
BLAKE2b-256 a193e67c37bf6b30a9d6e1f08f8f2c9baff20770d000f84502be7e284781b1a4

See more details on using hashes here.

Supported by

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