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

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.5.1.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

gcsa-2.5.1-py2.py3-none-any.whl (49.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: gcsa-2.5.1.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for gcsa-2.5.1.tar.gz
Algorithm Hash digest
SHA256 ddad61c418b5c471872e8201293dc948fb5cf2f54635b8e53e874959aebba6a7
MD5 3710f00b8581570b412aecd2c090c422
BLAKE2b-256 ea9e77c8d6205ed0fb9ee5f886421c95f2ef7098550b91a4264237687aeee956

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcsa-2.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for gcsa-2.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e29dc38bfa7ac0049e0230201567e9794af1d4f9829f65e2182e5ee57ef24d9
MD5 f744dbea6da7b2d1a8791b14e4a344f1
BLAKE2b-256 a1695c1fbc94aee80c1dbf363fd258be47ca860d386217e6e8202eac4482caaa

See more details on using hashes here.

Supported by

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