Skip to main content

fsspec-abfs

PyPI - Version Python versions License CI CodeQL codecov

An fsspec file system for Azure Data Lake Storage Gen2.

It works with accounts with or without a hierarchical namespace, and with Microsoft Fabric's OneLake. pandas, PyArrow and any library that takes fsspec can use it through abfs:// and abfss:// URLs.


Features

  • Takes the URLs Spark and Hadoop use, abfss://<container>@<account>.dfs.core.windows.net/<path>, and those of adlfs.
  • Uses the hierarchical namespace where the account has one: it renames a file or a folder in one atomic request, and deletes a folder with all in it in one request.
  • Copies files on the server, without downloading them.
  • Reads a file in one request, and pins the ranges of a file opened to one version of it.
  • Writes a file whole, or not at all, and makes it visible only when it is closed.
  • Authenticates with Microsoft Entra ID credentials, SAS tokens or account keys.
  • Streams listings, and runs recursive operations, such as find, rm and copy, with concurrent requests.
  • Works on many accounts at once with AbfsFileSystems, copying between two of them through this process or on the server.

Installation

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

Usage

from fsspec_abfs import AbfsFileSystem

fs = AbfsFileSystem(account_name="myaccount")

fs.ls("/mycontainer/data")

with fs.open("/mycontainer/data/file.csv", "rb") as f:
    data = f.read()

Installing the package registers it for the abfs and abfss protocols, in place of adlfs. A URL naming its account needs no account_name:

import pandas as pd

df = pd.read_csv("abfss://mycontainer@myaccount.dfs.core.windows.net/data/table.csv")

See USAGE.md for options, authentication and each operation's behaviour.

Paths

Path Meaning
/<container>/<path> A path in a container of the account
/ The root, listing the account's containers
abfss://<container>@<account>.dfs.core.windows.net/<path> The same path, as Spark and Hadoop name it

Many accounts

AbfsFileSystems takes Spark's and Hadoop's URLs of any account, and answers the same URLs:

from fsspec_abfs import AbfsFileSystems

fs = AbfsFileSystems(
    accounts=[{"account_name": "opendata", "credential": "anonymous"}],
    cross_account_copy="server-side",
)

fs.copy(
    "abfss://public@opendata.dfs.core.windows.net/dataset",
    "abfss://raw@myaccount.dfs.core.windows.net/dataset",
    recursive=True,
)

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

import fsspec_abfs

fsspec_abfs.use(cross_account=True)

Compatibility

  • Python 3.11 to 3.14
  • fsspec: 2024.6.0 or later
  • azure-storage-file-datalake and azure-identity
  • Tested live on Azure storage accounts with and without a hierarchical namespace

Status

Alpha, not released yet. The API and behaviour may change.


Development, security and license

  • DEVELOPMENT.md explains how to work on the package: its setup and tests.
  • 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-abfs 0.1.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-abfs 0.1.0
File Size Uploaded Provenance Actions
fsspec_abfs-0.1.0.tar.gz 294.3 kB With provenance Details for fsspec_abfs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fsspec-abfs 0.1.0
File Interpreter ABI Platform Actions
fsspec_abfs-0.1.0-py3-none-any.whl Python 3 none any Details for fsspec_abfs-0.1.0-py3-none-any.whl

Total release size: 434.9 kB

Release files / fsspec_abfs-0.1.0.tar.gz

Download URL fsspec_abfs-0.1.0.tar.gz
Size 294.3 kB
Tags Source
SHA-256 checksum
How to use checksums
742fc121ad449ba477ce7b0336eb2d30a0045283e882d1eba7b2a339c0d98003
BLAKE2b-256 checksum
How to use checksums
4cfd5dca3cd2b710544451bd6d024b5b885ab5852ccecd89e1ec1e68ea07095f
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 12, 2026.

Transparency log

Release files / fsspec_abfs-0.1.0-py3-none-any.whl

Download URL fsspec_abfs-0.1.0-py3-none-any.whl
Size 140.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dc3c1a0a919be5f7ccaf567b04e740d4a0e8d615b1d302c3ab21fa00d4f64c3
BLAKE2b-256 checksum
How to use checksums
1b3d201fc7753e3058b18b2e6efe940adec31db36ea67799b5a7a8e90da5e806
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 12, 2026.

Transparency log

Security for fsspec-abfs 0.1.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_abfs-0.1.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 12, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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