Skip to content

Instantly share code, notes, and snippets.

@minherz
Created January 22, 2021 16:43
Show Gist options
  • Save minherz/2724befd176461bb7d9f781213860f17 to your computer and use it in GitHub Desktop.
Save minherz/2724befd176461bb7d9f781213860f17 to your computer and use it in GitHub Desktop.
initialize Google client library in Python
creds, project_id = google.auth.default(scopes=['https://www.googleapis.com/auth/compute'])
compute = googleapiclient.discovery.build('compute', 'v1', credentials=creds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment