gdrive-fsspec
File system on GDrive
What it is and what it does
gdrive-fsspec wraps Google Drive as a filesystem using the fsspec abstraction layer, letting you treat Google Drive like a local or networked filesystem. It supports three authentication modes: service account credentials (for programmatic access without user prompts), OAuth with browser or console-based flow (for user-interactive scenarios), and anonymous read-only access to publicly shared files. The package implements the fsspec interface, so once authenticated, you can use standard filesystem operations—listing directories, reading and writing files, checking existence—against your Google Drive.
The package is actively maintained but explicitly marked as beta, meaning the API or behavior may change and it is not recommended for production systems where stability is critical. It depends on Google's official API client libraries (google-api-python-client, google-auth-httplib2, google-auth-oauthlib) and pydata-google-auth for credential handling, all of which are well-established. The low install friction and support for modern Python versions (3.10–3.14) make it straightforward to add to existing projects.
Use it for:
- Integrate Google Drive as a data source in data pipelines or Jupyter notebooks without switching between APIs.
- Build backup or sync tools that treat Google Drive as a standard filesystem target.
- Access publicly shared Google Drive files programmatically without authentication setup.
- Automate file operations on a shared team drive using service account credentials in CI/CD workflows.
- Prototype cloud-agnostic code that can swap fsspec backends (local, S3, Google Drive) without rewriting logic.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a fsspec-compatible filesystem interface for Google Drive, allowing you to read, write, and browse files on Google Drive using standard filesystem operations.
Yes, if you need to interact with Google Drive as a filesystem and can accept beta-stage stability. The low install friction, active maintenance, and permissive license make it a reasonable choice for development and non-critical workflows. Not recommended for production systems requiring guaranteed stability—wait for a stable release or use the official Google Drive API directly if production reliability is essential.
Install
gdrive-fsspec on PyPI
pip
pip install gdrive-fsspecuv
uv add gdrive-fsspecpoetry
poetry add gdrive-fsspecInstalling gdrive-fsspec
Before you install
Low install friction with a pure-Python wheel. Active maintenance as of June 2026, though the package is explicitly in beta stage and the maintainers caution against production use.
License in practice
BSD 3-Clause License permits commercial and private use with minimal restrictions; you must retain copyright notice and disclaimer in distributions.
Quickstart
pip install gdrive_fsspec
from gdrive_fsspec import GoogleDriveFileSystem
# OAuth with browser-based auth (first time)
fs = GoogleDriveFileSystem(token='browser')
# Or reuse cached token on subsequent runs
fs = GoogleDriveFileSystem(token='cache')
# Standard fsspec operations
files = fs.ls('/')
Requires Python 3.10 or later. OAuth authentication requires either a browser (for interactive use) or console-based flow for headless environments. Service account or public-link access are alternatives.
Verify before relying
- Whether the beta status implies specific known limitations beyond general production caution.
- Performance characteristics and scalability limits for large file operations or directory listings.
- Whether all fsspec operations are fully supported or if some have limitations on Google Drive.
Package facts
| License | BSD 3-Clause License Copyright (c) 2018, Martin Durant All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — fsspec, google-api-python-client, google-auth-httplib2, google-auth-oauthlib, pydata_google_auth |
| Maintenance | actively maintained — 64 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 159,425/month — #10,695 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gdrive_fsspec-0.4.1-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
googledrivedownloaderDownloads shared files from Google Drive by…
unclear · top 15,000 on PyPI
morefsmorefs provides fsspec-based filesystem…
permissive · top 15,000 on PyPI
msgraphfsProvides a filesystem interface to Microsoft…
permissive · top 5,000 on PyPI
scmreposcmrepo provides an fsspec-based filesystem…
permissive · top 5,000 on PyPI
fsspecfsspec provides a unified filesystem interface…
unclear · top 100 on PyPI
sshfsProvides an fsspec-compatible filesystem…
permissive · top 5,000 on PyPI
gcsfsProvides a file-system-like interface to Google…
permissive · top 1,000 on PyPI
dvc-gdriveEnables DVC to store and retrieve data from…
permissive · top 15,000 on PyPI
ossfsOSSFS provides a Python interface to Alibaba…
permissive · top 15,000 on PyPI
dvc-objectsProvides filesystem and object-database…
permissive · top 5,000 on PyPI