Create a virtual environment
python3 -m venv .venv
source .venv/bin/activate
Install requirements
pip install -r requirements.txt
Create a refresh token using your current account
gcloud auth application-default login
Create GOOGLE_APPLICATION_CREDENTIALS environment variable from the refresh token created above.
export GOOGLE_APPLICATION_CREDENTIALS=/Users/myusername/.config/gcloud/application_default_credentials.json
Run the script
python roles_lookup.py