iterative / PyDrive2

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

feat(auth): add GDRIVE_NON_INTERACTIVE to avoid launching browser #324

Closed shcheklein closed 8 months ago

shcheklein commented 8 months ago

Closes https://github.com/iterative/PyDrive2/issues/319

Adds GDRIVE_NON_INTERACTIVE variable so that LocalWebserverAuth raises pydrive2.auth.AuthenticationError if it's called.

This is might be handy in any server side / automated environment where we can't really expect anyone interacting with a browser.