Skip to content

kyhau/gsuite-utils

Folders and files

NameName
Last commit message
Last commit date
Jan 26, 2025
Mar 9, 2017
Oct 30, 2016
May 13, 2020
Dec 25, 2016
Oct 29, 2016
Mar 9, 2017
Aug 2, 2020
Oct 29, 2016
Mar 9, 2025
Mar 16, 2025
Mar 23, 2025
May 13, 2020

Repository files navigation

gsuite-utils

Build Status codecov

This repo contains simple scripts using

  1. Google Apps Admin SDK (Reports API) to retreive last N google drive activities
  2. Google Calendar API to retrieve my next N calendar events (accepted invitations)
  3. Google Groups and GroupsSettings

Please see Google Apps Admin SDK - Reports API or Google Calendar API for the steps about

  1. enabling API access
  2. create OAuth client ID and credential (client_secret.json)

Locally Installing / Testing

Copy client_secret.json to gsuite_utils/

Linux

virtualenv env
. env/bin/activate
pip install -e .

python gsuite_utils/gdrive.py
python gsuite_utils/gcalendar.py

# for running pytest
pip install -r requirements-build.txt

# for full testing with tox and building wheel
tox -r

Windows

virtualenv env
env\Scripts\activate
pip install -e .

python gsuite_utils\gdrive.py
python gsuite_utils\gcalendar.py

# for running pytest
pip install -r requirements-build.txt

# for full testing with tox and building wheel
tox -r