ics
Python icalendar (rfc5545) parser
What it is and what it does
Ics.py is a Python library that abstracts away the complexity of the iCalendar format (RFC 5545), letting you create, read, and modify calendar files using straightforward Python objects instead of raw iCalendar syntax. It wraps the low-level format details so you can work with Calendar and Event objects directly, setting properties like name and begin time as simple attributes.
The library is designed for interoperability with widely-used calendar applications—Google Calendar, Apple Calendar, Android, and others all use the .ics format. It depends on python-dateutil for date handling, arrow for timezone-aware datetimes, tatsu for parsing, and attrs for object construction. The package is actively maintained and supports Python 3.6 and later.
Use it for:
- Export calendar events from a web application as .ics files for use with calendar systems.
- Parse .ics files from external sources and extract event details programmatically.
- Build a calendar sync tool that reads and writes .ics files to keep multiple systems in sync.
- Generate recurring event definitions and todo items in iCalendar format without manually constructing RFC 5545 syntax.
- Integrate calendar functionality into a scheduling or booking application without learning the iCalendar specification.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Reads and writes iCalendar (RFC 5545) files in a pythonic, developer-friendly way, handling calendar events and todos without requiring knowledge of the iCalendar format.
Yes. The package is actively maintained, has low install friction, permissive licensing, no known vulnerabilities, and solves a real problem—making iCalendar handling accessible. It's well-suited for any project that needs to read or write .ics files. The Beta status is a minor note but not a blocker for typical use.
Install
ics on PyPI
pip
pip install icsuv
uv add icspoetry
poetry add icsInstalling ics
Before you install
Low install friction with a pure-Python wheel and five straightforward runtime dependencies (python-dateutil, arrow, six, tatsu, attrs). The package is actively maintained with a recent release on 2026-04-15.
License in practice
Licensed under Apache License, Version 2.0 (permissive), which allows commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
from ics import Calendar, Event
c = Calendar()
e = Event()
e.name = "My cool event"
e.begin = '2014-01-01 00:00:00'
c.events.add(e)
with open('my.ics', 'w') as f:
f.writelines(c.serialize_iter())
Verify before relying
- Whether the package fully supports all RFC 5545 edge cases or only a subset of the specification.
- Current test coverage and stability level given the Beta development status classifier.
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — python-dateutil, arrow, six, tatsu, attrs |
| Maintenance | actively maintained — 121 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 688,622/month — #5,339 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ics-0.7.3-py2.py3-none-any.whl
Keywords: ics, icalendar, calendar, event, todo, rfc5545, parser, pythonic
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
icalParse, create, and iterate over iCalendar (RFC…
permissive · top 15,000 on PyPI
icalendarParses, creates, and modifies iCalendar files…
permissive · top 5,000 on PyPI
icaleventsDownloads, parses, and queries iCalendar (.ics)…
permissive · top 15,000 on PyPI
recurring-ical-eventsExpands recurring iCalendar events (RFC 5545)…
copyleft · top 5,000 on PyPI
vobjectParses and serializes iCalendar and vCard…
permissive · top 5,000 on PyPI
x-wr-timezoneConverts ICS calendar files that use the…
copyleft · top 5,000 on PyPI
django-icalGenerates iCalendar (iCal) feeds from Django…
permissive · top 15,000 on PyPI
types-icalendarProvides type stubs for the icalendar package,…
permissive · top 15,000 on PyPI
icalendar-searcherSearches, filters, and sorts iCalendar…
agpl · top 15,000 on PyPI
vdirsyncerVdirsyncer is a command-line tool that…
permissive · top 15,000 on PyPI