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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file gcal-cmd-tool-0.1.1.tar.gz.

File metadata

  • Download URL: gcal-cmd-tool-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.3-302.fc36.x86_64

File hashes

Hashes for gcal-cmd-tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 567e9718994a1109df7b83874fb59a9907ccda5a33137e8c8db8f1c622954329
MD5 44de53b0a242133c955a0e9ad0de57dd
BLAKE2b-256 112f4c91b8fe4ff960823c390ac87fde4a77af36e6a5bb9649e3e46678bbdaba

See more details on using hashes here.

File details

Details for the file gcal_cmd_tool-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gcal_cmd_tool-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.3-302.fc36.x86_64

File hashes

Hashes for gcal_cmd_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b777f5d41cd25859fdc95de15c758f8d8b4aa9cac31d1e933570f650bfc46240
MD5 3e51582277966b52621913e84cf17ab9
BLAKE2b-256 94fa5b7c6d9a1b1c44ddcb1818b6562114c42034addbac7a3dd599240b0f5c1e

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