提醒Caldav工具
remind-caldav的Python项目详细描述
从caldav同步到remind(dav2rem.py)和相反方式(rem2dav.py)的工具。
安装
您需要安装提醒命令行工具。 对于debian/ubuntu,请使用:
$ sudo apt-get install remind
使用pip
$ pip install remind-caldav
这也将安装所有Python依赖项
使用python setuptools
$ python setup.py install
提供密码
有许多选项可供选择如何提供caldav密码:
- 使用netrc(5)文件(<;域>;是 caldav url的域部分:
machine <domain> login <user> password <password>
- 与caldav一起使用python-keyring 作为服务的url。
- 在命令行上提供密码注意,这个泄漏到 环境。
- 如果没有提供密码,工具将要求提供密码。
如何连接到谷歌
转到https://www.google.com/settings/security/lesssecureapps并启用 “访问不太安全的应用程序”这使基本的http身份验证成为oauth2 python caldav不支持。
网址:https://www.google.com/calendar/dav/calid/user
Where calid should be replaced by the “calendar ID” of the calendar to be accessed. This can be found through the Google Calendar web interface as follows: in the pull-down menu next to the calendar name, select Calendar Settings. On the resulting page the calendar ID is shown in a section labelled Calendar Address. The calendar ID for a user’s primary calendar is the same as that user’s email address.
https://developers.google.com/google-apps/calendar/caldav/v2/guide