PyDrive is a wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.
Features of PyDrive
- Simplifies OAuth2.0 into just few lines with flexible settings.
- Wraps Google Drive API into classes of each resource to make your program more object-oriented.
- Helps common operations else than API calls, such as content fetching and pagination control.
How to install
You can install PyDrive with regular pip command.
$ pip install PyDrive
OAuth made easy
Download client_secrets.json from Google API Console and OAuth2.0 is done in two lines. You can customize behavior of OAuth2 in one settings file settings.yaml.
File management made easy
Upload/update the file with one method. PyDrive will do it in the most efficient way.
File listing pagination made easy
PyDrive handles file listing pagination for you.