1

I have a Python-based program that adds events to a Google Calendar. To add events that repeat, I need to specify a recurrent_data string that conforms to the RFC 2445 standard. An example is below, from http://code.google.com/apis/calendar/data/1.0/developers_guide_python.html#CreatingRecurring:

'DTSTART;VALUE=DATE:20070501\r\n'
        + 'DTEND;VALUE=DATE:20070502\r\n'
        + 'RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20070904\r\n'

Has anyone written a set of functions that will automatically generate these strings, and/or otherwise write recurring events to Google Calendar? It doesn't seem too difficult to write some functions myself, but I wanted to check whether I'd be duplicating any long-standing efforts in the ical or GData API communities.

wwwilliam
  • 9,142
  • 8
  • 30
  • 33

2 Answers2

1

All I found was the iCalendar module which can create RFC 2445-compliant data. Your best bet right now might be creating a template based on the Example section here provided by Google.

lunixbochs
  • 21,757
  • 2
  • 39
  • 47
0

There is another library called icalendar which is available as node.js npm module called icalendar.

Markus Peröbner
  • 883
  • 12
  • 15