Google Calendar Simple API
Google Calendar Simple API or gcsa is a library that simplifies event and calendar management in Google Calendars. It is a Pythonic object oriented adapter for the official API. See the full documentation.
Installation
Using uv:
uv add gcsa
Using pip:
pip install gcsa
See Getting started page for more details and installation options.
Example usage
List events
from gcsa.google_calendar import GoogleCalendar
calendar = GoogleCalendar('your_email@gmail.com')
for event in calendar:
print(event)
Create event
from gcsa.event import Event
event = Event(
'The Glass Menagerie',
start=datetime(2020, 7, 10, 19, 0),
location='Záhřebská 468/21',
minutes_before_popup_reminder=15
)
calendar.add_event(event)
Create recurring event
from gcsa.recurrence import Recurrence, DAILY
event = Event(
'Breakfast',
start=date(2020, 7, 16),
recurrence=Recurrence.rule(freq=DAILY)
)
calendar.add_event(event)
Suggestion: use beautiful_date to create date and datetime objects in your projects (because it’s beautiful… just like you).
References
Template for setup.py was taken from kennethreitz/setup.py
Metadata
Release files for gcsa 2.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcsa-2.7.0.tar.gz | 53.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcsa-2.7.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 103.5 kB
Release files / gcsa-2.7.0.tar.gz
| Download URL | gcsa-2.7.0.tar.gz |
|---|---|
| Size | 53.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2109bffd0d4a4fd941f526c2d3b2895e50206ffa3b5cca34d2ccc5fbb2b1f52
|
|
BLAKE2b-256 checksum How to use checksums |
4a4cfc20aa30d1926771c503fde99b4c141a39df078d026aa7293a3ab30ddd91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / gcsa-2.7.0-py2.py3-none-any.whl
| Download URL | gcsa-2.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 50.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c69631464e6489e4a75b840a08689999893dfd10492f95418daf9e6d6f463ab3
|
|
BLAKE2b-256 checksum How to use checksums |
26ff5554c4f491fdce0a1cb6b32e9da7d26274037030a9e6c27efb0fa477528c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|