Skip to main content

A command line tool to manage Google Calendars

Project description

gcal-cmd-tool

A command line tool to manage Google Calendars

Installation

This tool is available on PyPi. To install simply run

$ pip install gcal-cmd-tool 

Authentication

Authentication to Google Calendar API is done using a service account. Instructions can be read on Google's Authenticating as a service account .

To set the environment variable GOOGLE_APPLICATION_CREDENTIALS on Linux run the following command:

$ export GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"

Replace KEY_PATH with the path of the JSON file that contains your service account key.

For example:

$ export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/service-account-file.json"

Resource types

Acl

CALENDAR - the Calendar ID

EMAIL - the email of the user

list

Returns the rules in the access control list for the calendar.

$ gcal-cmd-tool acl list [OPTIONS] CALENDAR

insert

Creates an access control rule.

$ gcal-cmd-tool acl insert [OPTIONS] CALENDAR EMAIL

delete

Deletes an access control rule.

$ gcal-cmd-tool acl delete [OPTIONS] CALENDAR EMAIL

Calendars

get

Returns metadata for a calendar.

$ gcal-cmd-tool calendar get [OPTIONS] CALENDAR

delete

Deletes a secondary calendar.

$ gcal-cmd-tool calendars delete [OPTIONS] CALENDAR

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

gcal-cmd-tool-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

gcal_cmd_tool-0.1.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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