I am compiling a custom cli tool for interaction with Google Cloud.
For reasons beyond the scope of the question, I want to use sth different than gcloud cli.
I intend to use default credentials (i.e. the ones also used by gcloud
), more or less as described here.
My question is when and how to perform the above invocation?
Some thoughts:
a) on each function that requires auth? (as a python decorator?)
b) within the __init__.py
file of each of my packages (so as to acquire and use a global handle to the Client
instance?
c) other ...?
Aucun commentaire:
Enregistrer un commentaire