iterative / PyDrive2

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

auth: add client_creds_dict #202

Closed efiop closed 2 years ago

efiop commented 2 years ago

This allows programmatic use without having to create a temporary file.

efiop commented 2 years ago

From what I can see GoogleAuth requires settings file, which is how tests operate https://github.com/iterative/PyDrive2/blob/master/pydrive2/test/test_oauth.py And there is no support for providing settings through a dict, which makes testing this extremely hard without doing awful things like modifying GoogleAuth.DEFAULT_SETTINGS (which we do when using in dvc 🙁 ).