operations on Goolge calendar for LNCD.
Convenience functions on top of googleapiclient.discovery.build
using oauth2client.service_account.ServiceAccountCredentials
This has to have been implemented better elsewhere
provides:
get_event
insert_event
delete_event
move_event
upcoming
find_in_range
from settings in cal.ini
specifying
- a service account (
email
field) - path to a
*.p12
key - calendar id where service account has manager permissions (see google calendar settings)
- Optionally: a different calendar id for
move_event
pip3 install git+https://github.com/LabNeuroCogDevel/LNCDcal.py
Configuration in ini style file (via configparser
). see cal.ini.example
.
import LNCDcal
cal = LNCDcal.LCNDcal('cal.ini')
also see LNCDcal/test_LNCDcal.py