Skip to main content

fsspec-databricks

PyPI - Version Python versions License CI CodeQL codecov

An fsspec file system for Databricks:

The same dbfs:/ URLs and POSIX paths work inside and outside Databricks, with pandas, PyArrow and any library that takes fsspec.


Features

  • Routes dbfs:/ URLs and POSIX paths to the right file system, as Databricks does.
  • Copies and moves files between file systems, e.g. from Workspace files to a Volume.
  • Uses the local file system when running inside a Databricks workspace.
  • Reads and writes Volume files with concurrent requests.
  • Authenticates with Databricks Unified Authentication.

fsspec's own DatabricksFileSystem supports legacy DBFS only.


Installation

pip install fsspec-databricks
# or
uv add fsspec-databricks

Usage

from fsspec_databricks import DatabricksFileSystem

fs = DatabricksFileSystem()

fs.ls("dbfs:/Volumes/my_catalog/my_schema/my_volume/path")

with fs.open("dbfs:/Volumes/my_catalog/my_schema/my_volume/data.csv", "rb") as f:
    data = f.read()

To use it for every dbfs:/ URL in fsspec and the libraries using it, call use() once:

import fsspec
import fsspec_databricks

fsspec_databricks.use()

fs = fsspec.filesystem("dbfs")  # DatabricksFileSystem

See USAGE.md for operations, each file system's behaviour and options. See AUTHENTICATION.md for authentication.

Paths

Path File system
dbfs:/Volumes/<catalog>/<schema>/<volume>/path Unity Catalog Volume
dbfs:/Workspace/path Workspace files
dbfs:/path, any other Legacy DBFS

POSIX paths without dbfs: work the same: /Volumes/..., /Workspace/... and /path. See Databricks' documentation for these paths.


Compatibility

  • Python 3.11 to 3.14
  • databricks-sdk: 0.80.0 or later. Older versions ignore some parameters: custom_headers needs 0.86.0, and group_id needs 0.134.0.
  • fsspec: 2024.6.0 or later
  • aiohttp: 3.12.0 or later
  • Tested live on Databricks Free Edition on AWS, Azure Databricks and Databricks on Google Cloud

Status

Early beta. The API and behaviour may change.

  • Writing Volume files uses the Files API's multipart upload. The Databricks REST reference does not document it, but the official Databricks SDK for Python uses it, as an experimental feature.
  • Legacy DBFS is tested offline only, on a simulated API: no test workspace enables it.

Development, security and license

  • DEVELOPMENT.md explains how to work on the package: its design, setup, tests and releases.
  • SECURITY.md explains how to report a vulnerability.
  • The package is licensed under the Apache License 2.0. See LICENSE.

Metadata

Release files for fsspec-databricks 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fsspec-databricks 0.6.0
File Size Uploaded Provenance Actions
fsspec_databricks-0.6.0.tar.gz 182.3 kB With provenance Details for fsspec_databricks-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fsspec-databricks 0.6.0
File Interpreter ABI Platform Actions
fsspec_databricks-0.6.0-py3-none-any.whl Python 3 none any Details for fsspec_databricks-0.6.0-py3-none-any.whl

Total release size: 334.0 kB

Release files / fsspec_databricks-0.6.0.tar.gz

Download URL fsspec_databricks-0.6.0.tar.gz
Size 182.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5670a91b182aedc2f6a9c489998971d61c7fadbaa30dbf811394ae8271232025
BLAKE2b-256 checksum
How to use checksums
bea7c53f0e9cf61c89b357a5f978d97bb12d633ed44aa81d47043fc1f93b7513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / fsspec_databricks-0.6.0-py3-none-any.whl

Download URL fsspec_databricks-0.6.0-py3-none-any.whl
Size 151.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8167a3b0f553b4ea10fb81cfafb2d0d1fc899bafbea5b8aabfcb160779128172
BLAKE2b-256 checksum
How to use checksums
304a3be95c1c49a675b186b709192464a7ee84a8d37ef8f13b8840ebb114692d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for fsspec-databricks 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fsspec_databricks-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page