Skip to main content

fsspec-databricks

PyPI - Version 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. Databricks maps /Workspace to Workspace files only in workspaces with legacy DBFS disabled. See Databricks' documentation.


Compatibility

  • Python 3.11 to 3.14
  • databricks-sdk: 0.156.0 or later
  • fsspec: 2024.6.0 or later
  • aiohttp: 3.12.0 or later
  • Tested on Databricks Free Edition, 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.
  • Databricks on AWS is not tested.
  • Legacy DBFS is not tested.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for fsspec-databricks 0.3.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.3.0
File Size Uploaded Provenance Actions
fsspec_databricks-0.3.0.tar.gz 71.4 kB Without provenance Details for fsspec_databricks-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 113.6 kB

Release files / fsspec_databricks-0.3.0.tar.gz

Download URL fsspec_databricks-0.3.0.tar.gz
Size 71.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b14da31353669851ca6e617712bce89ff3b14db6ff02d30cc3db158692d044c3
BLAKE2b-256 checksum
How to use checksums
fef55f862a1f609a5d1727426692b6894cfbce84e408456ddbc4cc6b3f7e97da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL fsspec_databricks-0.3.0-py3-none-any.whl
Size 42.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a431a771c8a117c9aa59cb4b35f505e85ae3b244ea69dfe88283bc048f371e2
BLAKE2b-256 checksum
How to use checksums
4a0362f92c790dbd129619d6c72faa94a1a4aebd6e8c7af2a9e5b6cc3aaab254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fsspec-databricks 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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