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 a 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.0.0.tar.gz (22.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-1.0.0-py2.py3-none-any.whl (25.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gcsa-1.0.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for gcsa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 33abf1edd6f6a76c212b3f698aaabac3d6019fef38f77ae1637aaa7fa9034245
MD5 87237b21099d51fb6dd95cf5f5f76bcc
BLAKE2b-256 314e7ed4e1806a114029a261bc0a5a8071418b37d1061fb90510f1213e3c06af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcsa-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for gcsa-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02a5e529f676b495abdb72baf4011b8c4145ad005606904ea66d7a8c0392dca9
MD5 9742eae0b760feb7ff9152054baab692
BLAKE2b-256 5282f6ed3844c6d847941cda2ef1081180281ea3fcb5906be15274f1235bc2b2

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