Closed efiop closed 2 years ago
For the record: can't add fs to the https://docs.iterative.ai/PyDrive2/pydrive2/ as sphinx doesn't like existing code. Will get back to it in a followup.
@shcheklein Should be alright for now. Please take a look when you'll have time.
Compared to how we were using it in dvc before:
1) doesn't require/accept
tmp_dir
at all, caches creds inappdirs("pydrive2fs", appauthor=False)
. 2) caching is perclient_id
, so no risk of using mismatched client_id and cached creds. If user supplies aprofile
(defaults todefault
) - we'll also cache it byprofile
to support multiple google users using the sameclient_id
. 3) renamedservice_account_json_file_path
intoclient_json_file_path
for consistency. 4) renamedservice_account_user_email
intoclient_user_email
for consistency.Other than that, this is mostly old code.
Fixes https://github.com/iterative/PyDrive2/issues/193