OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
calendar.icalendar_parser Namespace Reference

Conservative iCalendar VEVENT normalization for the read-only CalDAV path. More...

Classes

class  UnsupportedCalendarEventError
 Event needs features not yet implemented. More...

Functions

list[CalendarEvent] parse_icalendar_events (str raw, str account_id, str calendar_id, datetime|None window_start=None, datetime|None window_end=None)
 Parse standalone VEVENTs and bounded recurrence masters.
list[CalendarEvent] _expand (CalendarEvent event, dict[str, list[tuple[dict[str, str], str]]] fields, datetime start, datetime end)
 Expand a recurrence set within a finite overlap window.

Detailed Description

Conservative iCalendar VEVENT normalization for the read-only CalDAV path.

Function Documentation

◆ parse_icalendar_events()

list[CalendarEvent] calendar.icalendar_parser.parse_icalendar_events ( str raw,
str account_id,
str calendar_id,
datetime | None window_start = None,
datetime | None window_end = None )

Parse standalone VEVENTs and bounded recurrence masters.

DATE values are represented as UTC midnights to satisfy the existing aware event model. All-day UI rendering must use the all_day flag, not local conversion.