API

Proxy

class dalec_caldav.proxy.CaldavProxy(*args: Any, **kwargs: Any)

caldav dalec proxy to fetch the last event.

app = 'caldav'
_fetch(nb: int, content_type: str, channel: str, channel_object: str) Dict[str, dict]
_fetch_event(nb: int, channel: str, channel_object: str) Dict[str, dict]

Get latest events from calendar(s)

_get_events(calendar: Calendar) List[CalendarObjectResource]
_get_calendar_infos(calendar: Calendar) Dict[str, Any]
_vobject_to_dict(vobject: Component) Dict[str, Any[str, int, datetime, date]]
_populate_content(event: Event, calendar_infos: Dict[str, Any]) dict