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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gcal_cmd_tool-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b777f5d41cd25859fdc95de15c758f8d8b4aa9cac31d1e933570f650bfc46240 |
|
MD5 | 3e51582277966b52621913e84cf17ab9 |
|
BLAKE2b-256 | 94fa5b7c6d9a1b1c44ddcb1818b6562114c42034addbac7a3dd599240b0f5c1e |