ical
Python iCalendar implementation (rfc 5545) with built-in recurring event support
What it is and what it does
ical is a modern Python library for reading, creating, and manipulating iCalendar files (RFC 5545 format). It handles recurring events natively—automatically expanding them into individual occurrences when you iterate over a calendar's timeline—without requiring a separate companion library. The library provides a Pythonic API with direct attribute access (event.start, event.summary), input validation with clear error messages, and full type annotations.
You can parse .ics files from disk or fetch them from remote URLs (with optional async support), create calendars and events programmatically, write calendars back to .ics format, and manage calendar state through an application-level store API. It supports Python 3.11+ and is actively maintained. Home Assistant uses it to power its calendar integrations.
Use it for:
- Parse a calendar file and iterate over all events (including expanded recurring instances) in chronological order
- Fetch a remote calendar over HTTP and automatically expand recurring events without blocking
- Create a calendar programmatically with recurring events and write it to an .ics file
- Manage calendar state in an application, handling timezone conversions and editing individual recurring event instances
- Validate iCalendar input with clear error messages before processing
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parse, create, and iterate over iCalendar (RFC 5545) files with built-in recurring event expansion, using a single unified API without needing companion libraries.
Yes. ical is actively maintained, has low install friction, carries a permissive license, and solves a real problem—handling recurring events natively without needing two separate libraries. It's production-ready (Development Status 5) and already used by Home Assistant. Install it if you need to work with iCalendar files and want a modern, unified API.
Install
ical on PyPI
pip
pip install icaluv
uv add icalpoetry
poetry add icalInstalling ical
Before you install
Low install friction; pure Python wheel. Actively maintained with a release 5 days ago. Requires Python 3.11+. Three runtime dependencies (python-dateutil, tzdata, pydantic) are all stable and widely used.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
from ical.calendar_stream import IcsCalendarStream
cal = IcsCalendarStream.calendar_from_ics(ics_content)
for event in cal.timeline:
print(event.start, event.summary)
Requires Python 3.11 or later. Optional async support (for remote calendar fetching) requires the ical[async] extra, which adds aiohttp.
Verify before relying
- Actual performance characteristics when handling large calendars with many recurring events
- Compatibility edge cases with non-standard or malformed iCalendar files in production use
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — python-dateutil, tzdata, pydantic |
| Maintenance | actively maintained — 5 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 123,270/month — #11,917 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ical-14.1.0-py3-none-any.whl
Keywords: icalendar, ics, calendar, recurring, rfc5545, vcalendar, rrule, vcard, caldav
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
caldavA CalDAV (RFC4791) client library for Python…
unclear · top 5,000 on PyPI
django-icalGenerates iCalendar (iCal) feeds from Django…
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
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
vobjectParses and serializes iCalendar and vCard…
permissive · top 5,000 on PyPI
icalendar-searcherSearches, filters, and sorts iCalendar…
agpl · top 15,000 on PyPI
x-wr-timezoneConverts ICS calendar files that use the…
copyleft · top 5,000 on PyPI
PyCronofyA Python client library for the Cronofy…
permissive · top 15,000 on PyPI