icalendar
RFC 5545 compatible parser and generator of iCalendar files
What it is and what it does
icalendar is an RFC 5545 compatible library for working with iCalendar format calendar files in Python. It lets you read existing .ics files, programmatically create new calendar objects with events, journals, and todos, and modify calendar data before writing it back. The package handles the structured text format that calendar applications (Outlook, Google Calendar, Apple Calendar) use to exchange scheduling information.
It depends on python-dateutil for date/time handling, tzdata for timezone data, and typing-extensions for type hints. The library supports multiple timezone implementations including the standard library's zoneinfo, dateutil.tz, and pytz, so you can work with calendar data in different timezone contexts. It's actively maintained, has no known vulnerabilities, and runs on modern Python versions (3.10 through 3.14) on both CPython and PyPy.
Use it for:
- Parse calendar files exported from Google Calendar or Outlook to extract event details and metadata.
- Generate .ics files programmatically to create calendar invitations or event feeds for distribution.
- Build calendar synchronization tools that read and transform iCalendar data between systems.
- Create recurring event schedules by constructing calendar objects with recurrence rules.
- Validate and normalize calendar data to ensure RFC 5545 compliance before storage or transmission.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses, creates, and modifies iCalendar files (RFC 5545 format) for calendar and scheduling data in Python.
Yes. icalendar is a mature, actively maintained library with no security issues, low install friction, and permissive licensing. It's the standard choice for RFC 5545 calendar work in Python. Install it if you need to parse, create, or manipulate .ics files or calendar scheduling data.
Install
icalendar on PyPI
pip
pip install icalendaruv
uv add icalendarpoetry
poetry add icalendarInstalling icalendar
Before you install
Low friction: pure Python wheel, three lightweight runtime dependencies (python-dateutil, typing-extensions, tzdata). Actively maintained with recent commits and stable production status.
License in practice
BSD-2-Clause (permissive): you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
Quickstart
from icalendar import Calendar
cal = Calendar()
cal.add('prodid', '-//My calendar//EN')
cal.add('version', '2.0')
print(cal.to_ical())
Requires Python 3.10 or later.
Verify before relying
- Whether timezone handling with zoneinfo, dateutil.tz, or pytz requires additional setup or configuration beyond installation.
- Performance characteristics when parsing or generating large calendar files.
Package facts
| License | BSD-2-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — python-dateutil, typing-extensions, tzdata |
| Maintenance | actively maintained — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,774,939/month — #1,363 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: icalendar-7.2.2-py3-none-any.whl
Keywords: calendar, calendaring, event, ical, icalendar, journal, recurring, rfc5545, todo
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
icalParse, create, and iterate over iCalendar (RFC…
permissive · top 15,000 on PyPI
icalendar-searcherSearches, filters, and sorts iCalendar…
agpl · top 15,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
caldavA CalDAV (RFC4791) client library for Python…
unclear · top 5,000 on PyPI
icsReads and writes iCalendar (RFC 5545) files in…
permissive · top 15,000 on PyPI
recurring-ical-eventsExpands recurring iCalendar events (RFC 5545)…
copyleft · top 5,000 on PyPI
django-icalGenerates iCalendar (iCal) feeds from Django…
permissive · top 15,000 on PyPI
icaleventsDownloads, parses, and queries iCalendar (.ics)…
permissive · top 15,000 on PyPI
vdirsyncerVdirsyncer is a command-line tool that…
permissive · top 15,000 on PyPI