r/pythonforengineers • u/py_am_i • May 31 '21
Built a python library for bulk upload/download from Google Drive
I built a python library ZDrive that helps in bulk download/upload of contents from Google Drive.
Pydrive undoubtedly has a lot of customizations when it comes to downloading and uploading content from Google Drive. But most of the time we perform a limited variety of operations and Pydrive lacks some major features.
Some of the major features of ZDrive includes:
Upload folders anywhere in the Drive maintaining the same directory structure as present locally.
Download folders from anywhere in the Drive to anywhere in the PC maintaining the same directory structure as present in the Drive.
Download or Upload the whole directory in less than 5 lines of code.
Can sustain minor network interruptions.
Serialize the credentials of your google-API in a pickle file so that you won't have to log in every time you run your script.
Note: Most of the above-specified features are not present in Pydrive(as per my research) making me build this library. Also, this is the initial version so I have only kept the features that people mostly use. Do raise a PR if you have a feature in mind that can be helpful.
PyPi Link: https://pypi.org/project/ZDrive
GitHub Link: https://github.com/ab-anand/Zdrive
Do give it a star if you find it useful. Thanks