PyDrive2
PyDrive2 copied to clipboard
Google Drive API Python wrapper library. Maintained fork of PyDrive.
This is the error I am getting `pydrive2.auth.RefreshError: Access token refresh failed: invalid_grant: Token has been expired or revoked`. Upon looking at a similar issue @shcheklein mentioned that the error...
### Summary of changes #89 - Removed all dependencies on oauth2client and transitioned to the use of google-auth #89 - Added a thread-safe backend adaptor for saving of authorized credentials...
Can copy single files and folders, the recursive implementation is in `AbstractFileSystem.copy`. Is compatible with `AbstractFileSystem.copy` so for example: ```python fs = GDriveFileSystem("root/tmp", auth) fs.copy('root/tmp/a.pdf', 'root/tmp/folder/b.pdf', recursive=False) > will copy...
Hi, i'm addind a method to rename a `GoogleDriveFile` the google api to rename a file is: https://developers.google.com/drive/api/v2/reference/files/patch I saw you have a wrapper for `files().patch`: `_FilesPatch` do you prefer...
Related, but should be improved - https://github.com/gsuitedevs/PyDrive/pull/157 . See auth tests for an example how we use service account by setting up a proper yaml file.
I'm doing a large job to download approx 50k files from google drive. After exactly an hour I start to see this message: INFO:oauth2client.client:access_token is expired. Now: 2020-12-17 23:39:39.355448, token_expiry:...
Google Colaboratory provides these instructions for using PyDrive: https://colab.research.google.com/notebooks/snippets/drive.ipynb#scrollTo=bRFyEsdfBxJ9 Running the same code, but substituting `pydrive2` for `pydrive`, produces errors as collapsed here. ``` FileNotFoundError Traceback (most recent call last)...
https://github.com/iterative/PyDrive2/blob/378c6e80471d44f4164e64a178efc2f06ecae882/pydrive2/fs/spec.py#L358-L365 ref. https://github.com/iterative/PyDrive2/pull/119#pullrequestreview-753066960 suggestion: > ```diff > - """In-memory streamed copy""" > - with self.open(lpath) as stream: > - # IterStream objects doesn't support full-length > - # seek() calls,...
The endpoint `GET https://www.googleapis.com/drive/v2/files/:fileId/export` seems to be missing https://developers.google.com/drive/api/v2/reference/files/export It's a feature that allow you to download a HTML with CSS inlined version of a doc.
Hello Thank you for development and contributions of PyDrive2:) I want to upload a huge zip file by PyDrive2. When I looked into the API, GetContents() has a callback for...