Tasks ¶
-
https://github.com/python-caldav/caldav/blob/master/examples/scheduling_examples.py
-
https://github.com/python-caldav/caldav/blob/master/tests/test_caldav.py
Create a task list ¶
Create a task list
my_new_tasklist = dav_principal.make_calendar(
name="Test tasklist", supported_calendar_component_set=['VTODO'])
Adding a task to a task list ¶
Adding a task to a task list. The ics parameter may be some complete ical text string or a fragment.
my_new_tasklist.save_todo(
ics = "RRULE:FREQ=YEARLY",
summary="Deliver some data to the Tax authorities",
dtstart=date(2020, 4, 1),
due=date(2020,5,1),
categories=['family', 'finance'],
status='NEEDS-ACTION')
Fetching tasks ¶
Fetching tasks
todos = my_new_tasklist.todos()