Skip to main content

Simple API for Google Calendar management

Project description

PyPi Package Documentation Status Tests

Google Calendar Simple API or gcsa is a library that simplifies event management in Google Calendars. It is a Pythonic object oriented adapter for the official API.

Installation

pip install gcsa

from sources:

git clone git@github.com:kuzmoyev/google-calendar-simple-api.git
cd google-calendar-simple-api
python setup.py install

See Getting started page for more details.

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 its 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-1.3.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

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

gcsa-1.3.0-py2.py3-none-any.whl (28.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gcsa-1.3.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

File hashes

Hashes for gcsa-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6f8794825e5c5c12c18c595a5ba1b09aacc3d0c061197b4fdbcab291f9bec29f
MD5 672258fcd54a3a13ffaa287858113b75
BLAKE2b-256 fe19d799490f9ca27e8e285e67764131e32a699f33590332dbb245510183c9f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcsa-1.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

File hashes

Hashes for gcsa-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 be2dcc01cd9632213b7e75b3441a8c60d91bb1d96b5a8d1e645f2697a6225fcb
MD5 7a129cab5aecca1a40289a8a6829b890
BLAKE2b-256 47ccd6c05f1de477152d604f7ae172c84675102812a051a6118d811d13396655

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