Code Monkey home page Code Monkey logo

google-calendar-simple-api's Introduction

Google Calendar Simple API

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('[email protected]')
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

google-calendar-simple-api's People

Contributors

abdur-rahmaanj avatar alexander-minchin avatar dependabot[bot] avatar hroncok avatar julesgrd avatar kenomaerz avatar kuzmoyev avatar louispotok avatar ofekedri avatar pschmitt avatar randomnameuser avatar seanbreckenridge avatar vpoulailleau avatar ykuzmovych avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.