

Thus for performing any action related to a file/folder in Drive, we would need the IDs of the file/folder. Semantic file systems allow you to have multiple files with the same name and to have one file appearing in multiple places. Google Drive is a semantic (also called tag-based) file system meaning it stores files not based on their location, but based on an ID. The output location where the files will get downloaded can be specified too.ĭownloader() maintains the same directory tree structure while downloading from the Drive thus making it convenient to read. Once you have the clients-secret.json, rename it to credentials.json and place it in the same folder where you’ll be running the script.ĭownloader() allows you to download folder/files from the Drive. $ sudo python setup.py install should fix that 4 Usageįollow the article to get your drive-api credentials. $ sudo apt-get install python-pip should fix that 3.2 Option 2: Installing from source (Only if you must) $ git clone 3.1 Option 1: installing through pip (Recommended) Upload folders anywhere in the Drive maintaining the same directory structure as present locally.ĭownload folders from anywhere in the Drive to anywhere in the PC maintaining the same directory structure as present in the Drive.ĭownload or Upload whole directory in less than 5 lines of code. To address the bulk uploading/downloading functionality in a way that is easy-to-use and yet covers the users’ requirements. Pydrive has a lot of functionalities but there are certain major things that it lacks.

There is a number of such libraries already present with Pydrive being

A need for some minimal yet effective tool to transfer Google Drive is the most used cloud storage platform. Author :ģ.1 Option 1: installing through pip (Recommended)ģ.2 Option 2: Installing from source (Only if you must) A lightweight and easy to use Python library to upload and download contents from Google Drive.
