Testing caldav

This commit is contained in:
Edgar P. Burkhart 2022-01-26 15:35:02 +01:00
parent dfec33a446
commit a907ce357d
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -1,9 +1,13 @@
import argparse import argparse
import configparser import configparser
import logging import logging
## dev imports
from pprint import pp
import sys
from pathlib import Path from pathlib import Path
from datetime import date
import caldav import caldav
@ -28,4 +32,10 @@ cli = caldav.davclient.DAVClient(
) )
pri = cli.principal() pri = cli.principal()
log.info(pri) for cal in pri.calendars():
for event in cal.date_search(start=date.today()):
pp(event)
event.load()
pp(event.instance)
pp(event.instance.vevent.dtstart.value)
sys.exit(0)