Command-line Interface for Google Calendar
- Python: 2.7 / 3.4
- six
- python-dateutil
- pytz
- tzlocal
- google-api-python-client
- argparse
- mog-commons
pip
command may needsudo
Operation | Command |
---|---|
Install | pip install gcalendar-cli |
Upgrade | pip install --upgrade gcalendar-cli |
Uninstall | pip uninstall gcalendar-cli |
Check installed version | calendar-cli --version |
Help | calendar-cli -h |
- Download
client_secret.json
from Google Developers Console
- Open Google API Manager
- Select or create a project
- Open API Manager -> Credentials
- OAuth consent screen: Set a product name and save
- Credentials: Add credentials -> OAuth 2.0 client ID -> Other: Set a name and create
- Download a credential file by clicking the
Download JSON
button, then rename itclient_secret.json
- Create a credentials file
calendar-cli setup client_secret.json
The default path to the credentials file is ~/.credentials/calendar-cli.json
.
- Print the summary of today's events on the default calendar
calendar-cli
- Launch with arguments
calendar-cli --date 20151014 calendar-cli --calendar xxxxxx@group.calendar.google.com