Skip to main content

Simple API for Google Calendar management

Project description

PyPi Package Documentation Status Tests Discord

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcsa-2.7.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcsa-2.7.0-py2.py3-none-any.whl (50.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gcsa-2.7.0.tar.gz.

File metadata

  • Download URL: gcsa-2.7.0.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gcsa-2.7.0.tar.gz
Algorithm Hash digest
SHA256 f2109bffd0d4a4fd941f526c2d3b2895e50206ffa3b5cca34d2ccc5fbb2b1f52
MD5 4c66619c7d88c612424f3cdba7f84f1d
BLAKE2b-256 4a4cfc20aa30d1926771c503fde99b4c141a39df078d026aa7293a3ab30ddd91

See more details on using hashes here.

File details

Details for the file gcsa-2.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: gcsa-2.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gcsa-2.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c69631464e6489e4a75b840a08689999893dfd10492f95418daf9e6d6f463ab3
MD5 53892caf99a41bdda5f24ce5d50413b2
BLAKE2b-256 26ff5554c4f491fdce0a1cb6b32e9da7d26274037030a9e6c27efb0fa477528c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page