Is your feature request related to a problem? Please describe.
I can't seem to find a way to use pygsheets in a GCP cloud function that can use the default application credentials of the function. pygsheets gives me a lot of options to use service account keys but I do not want to have to manage a service account key, rotate it, etc.
Describe the solution you'd like
When running in GCP I'd like to either be able to use the google.auth.Credential object to authorize pygsheets or have a parameterless constructor that delegates to google.auth.default().
Any other info
Is there currently a way to use the results of credentials, project = google.auth.default()
Is your feature request related to a problem? Please describe.
I can't seem to find a way to use
pygsheets
in a GCP cloud function that can use the default application credentials of the function.pygsheets
gives me a lot of options to use service account keys but I do not want to have to manage a service account key, rotate it, etc.Describe the solution you'd like
When running in GCP I'd like to either be able to use the
google.auth.Credential
object to authorizepygsheets
or have a parameterless constructor that delegates togoogle.auth.default()
.Any other info
Is there currently a way to use the results of
credentials, project = google.auth.default()