iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.

Home Page:https://docs.iterative.ai/PyDrive2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can this package do non-interactive authentication?

quantitative-technologies opened this issue · comments

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?

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

  1. Use service accounts #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).