skillfed

gdrive-fsspec

File system on GDrive

gdrive-fsspec v0.4.1 159.4K downloads/30d#10,695 on PyPI51
Permissive 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) Active released

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-fsspec

uv

uv add gdrive-fsspec

poetry

poetry add gdrive-fsspec

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

google drive filesystem interfacefsspec google drivecloud storage filesystem abstractiongoogle drive file accessfsspec implementationcloud file system python
cloud-storagegoogle-drivefilesystem-abstraction

More Utilities packages