iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
570 stars 70 forks source link

Can this package do non-interactive authentication? #263

Closed quantitative-technologies closed 1 year ago

quantitative-technologies commented 1 year ago

The R package googledrive can do non-interactive authentication, with multiple supported methods.

Once setup, I have access programmatically without any user interaction needed.

Does PyDrive2 support this?

shcheklein commented 1 year ago

@quantitative-technologies there are a few ways to do non-interactive auth in this case.

  1. Use service accounts https://github.com/iterative/PyDrive2/issues/21
  2. Do interactive auth locally once, get the credentials files that is created and move it to the machine where you run you application. It can be moved as a file, or passed directly as a json string or dict into GAuth.

We don't support yet things like Workload Identity on Google Kubernetes Engine (GKE).