Update: Google has released its own Calendar/GData Python API: http://code.google.com/p/gdata-python-client/ You may prefer to use that one :-(
Python library/class for working with Google Calendar API.
Sample Usage: import cal a = cal.googCal() a.getAuth('username@gmail.com','password') events = a.query('mom's birthday') if events:
for event in events:print event['startTime'] print event['title'] print event['content']
Notes: Until we get a setup.py working you'll need to install the following libraries as a private citizen to get things working: 1. httplib 2. libgmail from http://libgmail.sourceforge.net/ 3. dateutil from http://labix.org/python-dateutil
Files: 1. cal.py is the file where everything API happens. This is all you really need to get to work. 2. birthdays.py is a bonus program using cal.py to add birthdays to google calendar from google contacts. 3. e2.py import one day from exchange to Google Calendar 4. exchange.py Put calendar entries from exchange into your google calendar. -See 'Download' Link on Right Sidebar
TODO: 0. Make setup.py and have it work. 1. Needs to offer all features of API. 2. Probably switch over to using xml dom or something? 3. Be able to choose which calendar to use 4. Handle weird Google (throttling?) errors? 5. Refactor nicely