gcsfs 2026.5.0


pip install gcsfs

  Latest version

Released: May 07, 2026


Meta
Maintainer: Martin Durant
Requires Python: >=3.10

Classifiers

Development Status
  • 4 - Beta

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

gcsfs

|Build Status| |Docs|

GCSFS is a Python library that provides a familiar, file-system-like interface to Google Cloud Storage (GCS). Built on top of fsspec, it allows you to interact with cloud buckets as if they were local directories, making it a favorite for data scientists and engineers.


Getting Started

Installation

Install via pip or conda:

# Using pip
pip install gcsfs

# OR using conda
conda install -c conda-forge gcsfs

Basic Usage

import gcsfs

# Initialize the filesystem
fs = gcsfs.GCSFileSystem(project='my-google-project')

# List files in a bucket
files = fs.ls('my-bucket')

# Read a file directly into a string/bytes
with fs.open('my-bucket/data.txt', 'rb') as f:
    content = f.read()

Specialized Bucket Support

GCSFS now automatically supports advanced Google Cloud Storage features through its ExtendedFileSystem implementation.

1. Hierarchical Namespace (HNS)

Hierarchical Namespace (HNS) replaces the traditional "flat" GCS structure with true logical directories.

  • Atomic Renames: Moving or renaming a directory is an O(1) metadata operation. No more slow "copy-then-delete" for large folders.
  • High Performance: Offers up to 8x higher initial Queries Per Second (QPS) for read/write operations.
  • AI/ML Ready: Ideal for heavy checkpointing and managing millions of small files.

2. Rapid Buckets (Zonal Storage)

Rapid Buckets are zonal storage resources designed for ultra-low latency and maximum throughput.

  • Zonal Co-location: Place your data in the same zone as your GPU/TPU clusters to minimize network lag.
  • True Appends: Unlike standard GCS objects, you can append data to existing objects in Rapid buckets without a full rewrite.
  • Streaming I/O: Optimized for high-speed model loading and real-time logging.

Integration & Auth

GCSFS plays nicely with the rest of the Python data ecosystem.

Authentication Modes

  • Default: Uses your local gcloud credentials or environment service accounts.
  • Cloud: Explicitly use Google Metadata service (token='cloud').
  • Anonymous: Access public data without a login (token='anon').
  • Service Account: Pass the path to your JSON key file (token='path/to/key.json').

[!TIP] Note on Async: GCSFS is built on aiohttp. If you are building high-concurrency applications, you can use the asynchronous API by passing asynchronous=True to the GCSFileSystem constructor.


Support

Work on this repository is supported in part by:

"Anaconda, Inc. - Advancing AI through open source."

2026.5.0 May 07, 2026
2026.4.0 Apr 29, 2026
2026.3.0 Mar 27, 2026
2026.2.0 Feb 06, 2026
2026.1.0 Jan 09, 2026
2025.12.0 Dec 03, 2025
2025.10.0 Oct 30, 2025
2025.9.0 Sep 02, 2025
2025.7.0 Jul 15, 2025
2025.5.1 May 24, 2025
2025.5.0.post1 May 21, 2025
2025.5.0 May 20, 2025
2025.3.2 Mar 31, 2025
2025.3.1 Mar 30, 2025
2025.3.0 Mar 08, 2025
2025.2.0 Feb 01, 2025
2024.12.0 Dec 19, 2024
2024.10.0 Oct 21, 2024
2024.9.0.post1 Sep 04, 2024
2024.9.0 Sep 04, 2024
2024.6.1 Jun 27, 2024
2024.6.0 Jun 04, 2024
2024.5.0 May 16, 2024
2024.3.1 Mar 18, 2024
2024.2.0 Feb 05, 2024
2023.12.2.post1 Dec 13, 2023
2023.12.1 Dec 05, 2023
2023.12.0 Dec 03, 2023
2023.10.0 Oct 23, 2023
2023.9.2 Sep 25, 2023
2023.9.1 Sep 15, 2023
2023.9.0 Sep 03, 2023
2023.6.0 Jun 12, 2023
2023.5.0 May 07, 2023
2023.4.0 Apr 11, 2023
2023.3.0 Mar 04, 2023
2023.1.0 Jan 23, 2023
2022.11.0 Nov 10, 2022
2022.10.0 Oct 19, 2022
2022.8.2 Sep 01, 2022
2022.8.1 Aug 31, 2022
2022.7.1 Jul 29, 2022
2022.5.0 May 20, 2022
2022.3.0 Apr 04, 2022
2022.2.0 Feb 22, 2022
2022.1.0 Jan 12, 2022
2021.11.1 Nov 26, 2021
2021.11.0 Nov 05, 2021
2021.10.1 Oct 15, 2021
2021.10.0 Oct 02, 2021
2021.9.0 Sep 24, 2021
2021.8.1 Aug 31, 2021
2021.7.0 Jul 13, 2021
2021.6.1 Jun 23, 2021
2021.6.0 Jun 07, 2021
2021.5.0 May 14, 2021
2021.4.0 Apr 21, 2021
0.8.0 Apr 05, 2021
0.7.2 Feb 10, 2021
0.7.1 Sep 09, 2020
0.7.0 Aug 21, 2020
0.6.2 May 07, 2020
0.6.1 Mar 27, 2020
0.6.0 Dec 12, 2019
0.5.3 Dec 05, 2019
0.5.2 Dec 04, 2019
0.5.1 Dec 02, 2019
0.5.0 Nov 27, 2019
0.4.0 Nov 13, 2019
0.3.1 Oct 06, 2019
0.3.0 Jul 17, 2019
0.2.3 Jun 30, 2019
0.2.2 May 16, 2019
0.2.1 Feb 24, 2019
0.2.0 Nov 21, 2018
0.1.2 Aug 19, 2018
0.1.1 Jul 03, 2018
0.1.0 Apr 21, 2018
0.0.6 Mar 23, 2018
0.0.5 Mar 01, 2018
0.0.4 Jan 16, 2018
0.0.3 Sep 24, 2017
0.0.2 Jul 19, 2017
0.0.1 Jun 28, 2017

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
aiohttp (!=4.0.0a0,!=4.0.0a1,>=3.9.0)
decorator (>4.1.2)
fsspec (!=2026.4.0,>=2026.3.0)
google-auth-oauthlib
google-auth (>=1.2)
google-cloud-storage-control
google-cloud-storage (>=3.9.0)
requests