PyDrive2
Google Drive API made easy. Maintained fork of PyDrive.
Decision gist · record as of 2026-08-14
Yes. PyDrive2 is actively maintained, carries no known vulnerabilities, has low install friction, and solves a real problem—Google Drive API V2 is verbose and requires careful OAuth2 setup. If you need to interact with Google Drive from Python, this wrapper saves substantial boilerplate. The permissive Apache 2.0 license poses no restriction. The only gotcha is the OAuth2 flow setup; read the documentation first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires client_secrets.json from Google API Console and local web server access for OAuth2 authentication flow.
- Low install friction with a pure Python wheel.
- Actively maintained as of 2026-08-05 with recent release activity; maintained by the DVC project team.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions beyond attribution and liability disclaimers.
last release 2024-11-29 (623 days) · last repo commit 2026-08-05 · 670 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,084,027 downloads/mo, #4,390 on PyPI
Alternatives
Verify before relying
pip install PyDrive2
from pydrive2.auth import GoogleAuth
from pydrive2.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
file_list = drive.ListFile({'q': "'root' in parents"}).GetList()- Whether the fsspec integration (GDriveFileSystem) is production-ready or still experimental.
- Performance characteristics when handling large file uploads or working with deeply nested directory structures.
- Concurrency guarantees beyond the stated thread-safety claim—whether it handles quota limits or rate limiting.
What it is and what it does
PyDrive2 is a maintained fork of the original PyDrive, built to simplify working with Google Drive through Python. It wraps google-api-python-client into higher-level classes representing Drive resources (files, folders) and handles OAuth2 authentication in just a few lines of code. Instead of writing raw API calls, you work with objects—create files, set content, upload, download, and query with methods like CreateFile(), Upload(), and GetContentFile().
The package automates common friction points: OAuth2 setup via settings.yaml, pagination through file listings, and efficient upload/update logic that chooses the right API method (insert, patch, or update) based on what changed. It also provides an fsspec-compatible filesystem interface for treating Google Drive like a local filesystem. Supports Python 3.8+ and carries no known security vulnerabilities.
Use it for
- Automate bulk file uploads or downloads to/from Google Drive in a data pipeline or backup script.
- Build a Python application that needs OAuth2-authenticated access to a user's Drive without writing low-level API boilerplate.
- Implement file listing and search with automatic pagination handling across large Drive directories.
- Use Google Drive as a remote filesystem backend via fsspec for seamless integration with tools like DVC or data processing workflows.
- Manage shared Drive resources programmatically (create, update, delete files) in a team collaboration tool.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyDrive2 is actively maintained, carries no known vulnerabilities, has low install friction, and solves a real problem—Google Drive API V2 is verbose and requires careful OAuth2 setup. If you need to interact with Google Drive from Python, this wrapper saves substantial boilerplate. The permissive Apache 2.0 license poses no restriction. The only gotcha is the OAuth2 flow setup; read the documentation first.
Install
pydrive2 on PyPI
Before you install
Low install friction with a pure Python wheel. Actively maintained as of 2026-08-05 with recent release activity; maintained by the DVC project team. Five runtime dependencies including google-api-python-client and oauth2client handle the underlying API and authentication.
Requires client_secrets.json from Google API Console and local web server access for OAuth2 authentication flow.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install PyDrive2
from pydrive2.auth import GoogleAuth
from pydrive2.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
file_list = drive.ListFile({'q': "'root' in parents"}).GetList()
Verify before relying
- Whether the fsspec integration (GDriveFileSystem) is production-ready or still experimental.
- Performance characteristics when handling large file uploads or working with deeply nested directory structures.
- Concurrency guarantees beyond the stated thread-safety claim—whether it handles quota limits or rate limiting.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesgoogle-api-python-clientoauth2clientPyYAMLcryptographypyOpenSSL |
| Maintenance | Actively maintained 623 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,084,027 / month, #4,390 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: PyDrive2-1.21.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google drive api wrapper”
- PyDrive2PyDrive2 simplifies Google Drive API V2 operations by wrapping the…
- PyDrivePyDrive wraps the Google Drive API into Python classes, simplifying…
- googledrivedownloaderDownloads shared files from Google Drive by file ID and saves them…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also PyDrive · gdrive-fsspec · requests-oauthlib · google-resumable-media · oauth2client · dvc-gdrive · oauth2-client · edx-rest-api-client · gcs-oauth2-boto-plugin · dvc-objects