A Simple Tool for Google Drive.
Used PyDrive2 an Google Drive API Wrapper for Python to perform all functions with Google Drive.
To get started you need to get OAuth2.0 for authentication with Google Drive API and required Python Modules.
You need to install required Python modules from requirements.trxt
- python3.9+
pip install -r requirements.txt
-
Go to APIs Console and make your own project.
-
Search for ‘Google Drive API’, select the entry, and click ‘Enable’.
-
Select ‘Credentials’ from the left menu, click ‘Create Credentials’, select ‘OAuth client ID’.
-
Now, the product name and consent screen need to be set -> click ‘Configure consent screen’ and follow the instructions. Once finished:
-
Select ‘Application type’ to be Web application.
-
Enter an appropriate name.
-
Input http://localhost:8080/ for ‘Authorized redirect URIs’.
-
Click ‘Create’.
-
Click ‘Download JSON’ on the right side of Client ID to download client_secret_.json.
The downloaded file has all authentication information of your application. Rename the file to “client_secrets.json” and place it in your working directory.
Distributed under the MIT License. See LICENSE for more information.