Google Drive as blob storage an extension of PyDrive2
-
Create a new project
-
Search for
google drive api
and enable it -
Create credentials for an OAuth client for your project
- Select ‘Application type’ to be Web application.
- Enter an appropriate name.
- Input http://localhost:8080/ for ‘Authorized redirect URIs’.
- Click ‘Create’.
-
Copy your client_id and client_secret values
Once you have your client_id and client_secret values, rename .sample-env
to .env
and add your client_id and client_secret
Run python init.py
- Follow the one time auth flow.
- Navigate to the created credentials file
- Windows: ..../AppData/Local/pydrive2fs/...
- Mac: ...
- Copy the .json file contents