Skip to content

Commit

Permalink
Use pydrive2 (#3)
Browse files Browse the repository at this point in the history
Since pydrive has problems uploading large files and comments on the
internet says that pydrive2 fixes this problem, we are switching to
pydrive2. The API appears to be the same, so nothing other than package
name needed to be changed.
  • Loading branch information
ChenglimEar authored Oct 7, 2023
1 parent fd2c448 commit fcf169f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gdrive_client/GDriveCopier.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import json
from oauth2client.service_account import ServiceAccountCredentials
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from pydrive2.auth import GoogleAuth
from pydrive2.drive import GoogleDrive

class GDriveCopier:
'''This copier class supports uploading and downloading files between a local folder
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pydrive==1.3.1
pydrive2==1.17.0
requests==2.31.0
oauth2client==4.1.3

0 comments on commit fcf169f

Please sign in to comment.