Skip to main content

galaxy-fsspec

An fsspec filesystem that exposes a Galaxy account as a virtual, read-only directory tree.

galaxy://
├── histories/
│   └── <history>/                 (created / last_modified exposed via info())
│       ├── <dataset>              (files)
│       └── <collection>/          (list, paired, list:paired, nested ...)
│           └── ...                (collections nest as folders of folders)
└── libraries/
    └── <library>/
        ├── <dataset>
        └── <folder>/
            └── ...

Datasets are streamed as files; collections (including nested collections) appear as directories.

Install

uv pip install galaxy-fsspec

Because the protocol is registered via the fsspec.specs entry point, fsspec.filesystem("galaxy") and fsspec.open("galaxy://...") work without any extra imports.

Configure

The filesystem reads two environment variables:

Variable Default Purpose
GALAXY_URL https://usegalaxy.org Galaxy server URL
GALAXY_USER_API_KEY (required) User API key

Optional:

Variable Default Purpose
GALAXY_FSSPEC_SHOW_HID_IN_NAMES unset true prefixes entries with their hid (1-my-dataset)

You can also pass arguments explicitly:

import fsspec
fs = fsspec.filesystem("galaxy", url="https://my.galaxy.org", api_key="...", show_hid_in_names=True)

Usage

import fsspec

fs = fsspec.filesystem("galaxy")

# List histories.
for h in fs.ls("histories", detail=True):
    print(h["name"])

# Timestamps (created / last_modified) are fetched lazily via info().
for h in fs.ls("histories", detail=True):
    info = fs.info(h["name"])
    print(info["name"], info["created"], info["last_modified"])

# Walk a history's contents — datasets are files, collections are folders.
print(fs.ls("histories/My History"))

# Read a dataset (range-aware streaming via Galaxy's display endpoint).
with fs.open("histories/My History/my-paired/forward/R1.fastq", "rb") as f:
    print(f.read(64))

show_hid_in_names=True renders history entries as Galaxy does in its UI:

histories/My History/1-my-uploaded-dataset
histories/My History/30-my result
histories/My History/5-mycollection/1-forward

Scope

Read-only for now: histories, datasets, and (nested) collections. Writes, uploads, and library browsing are not yet supported.

Metadata

Release files for galaxy-fsspec 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 galaxy-fsspec 0.1.0
File Size Uploaded
galaxy_fsspec-0.1.0.tar.gz 134.0 kB Details

Built distribution (wheel)

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

Total release size: 149.0 kB

Release files / galaxy_fsspec-0.1.0.tar.gz

Download URL galaxy_fsspec-0.1.0.tar.gz
Size 134.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e15a6dfa80bd11d38a469c6b968f890d915f5a863261c6c9f0d33da029ee8bad
BLAKE2b-256 checksum
How to use checksums
dbee9702d96af07680c8ff958ddf0a4f88d989ac488b07361309db7a331b2741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

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

Download URL galaxy_fsspec-0.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28263e8af3f12c3e25f54f358a00f5020b983ddbc6b9cdb67acb617795048504
BLAKE2b-256 checksum
How to use checksums
a62b6bd0d1c81cc02a1cbdb0ca8b91324d2fc32fab3b0a8437d9f9a6b55ba631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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