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.6.0.tar.gz (53.2 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.6.0-py2.py3-none-any.whl (49.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gcsa-2.6.0.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for gcsa-2.6.0.tar.gz
Algorithm Hash digest
SHA256 1181ff6bf409b165b872788827a67e7a280cbba784a7b86aef57eeca8d216e9b
MD5 d2c0f39bc083f1d15a1be4f699ba005f
BLAKE2b-256 4fe322b6a7628ad8334fd4a62bf90ac2f40cad73675c4663e718b097f15d2d55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcsa-2.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for gcsa-2.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fcc495ffc0364d09f873e74214f6692a95fc64d7e12237cde4de68d00be9511f
MD5 85a4d33f3fbf28ad7df84ef0443eccd3
BLAKE2b-256 7ac46e1ae85ce9d707f1e441716626c0b11c578cf4af4917f969673c60442514

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