File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ compatibility hints automatically:
8585 from caldav import get_davclient
8686
8787 # Credentials from env vars or ~/.config/caldav/calendar.conf
88+ # This is considered best practice!
8889 with get_davclient() as client:
8990 principal = client.get_principal()
9091 ...
@@ -95,14 +96,14 @@ compatibility hints automatically:
9596 principal = client.get_principal()
9697 ...
9798
98- # Use a named compatibility profile (iCloud, google, nextcloud , …)
99- with get_davclient(features = " icloud " ,
99+ # Use a named compatibility profile (ecloud, baikal, posteo , …)
100+ with get_davclient(features = " ecloud " ,
100101 username = " alice@icloud.com" , password = " ..." ) as client:
101102 ...
102103
103- Calendars may be configured in the config file, and it's also possible to get a celndar directly through factory method:
104+ Calendars may be configured in the config file, and it's also possible to get a calendar directly through factory method:
104105
105- .. code-block::python
106+ .. code-block :: python
106107
107108 from caldav import get_calendar
108109 with my_calendar as get_calendar(config_section = ' work_calendar' ):
You can’t perform that action at this time.
0 commit comments