nomad-fsspec
An fsspec filesystem for the raw data of NOMAD, the materials science repository. It is read-only.
import fsspec
fs = fsspec.filesystem("nomad") # https://nomad-lab.eu/prod/v1 by default
fs.ls("/") # two folders: /datasets and /uploads
fs.ls("/datasets") # public datasets
fs.ls("/datasets/wWgAnNZNQxOHLf97H62dgw", detail=False) # the uploads of one dataset, by id
fs.upload_names(["Xa2LB__ESiKu-odRBPJhjA"]) # {"Xa2LB__ESiKu-odRBPJhjA": "nomad-demo-data.zip"}
fs.get_file(
"/datasets/wWgAnNZNQxOHLf97H62dgw/Xa2LB__ESiKu-odRBPJhjA/nomad-demo-data/BrK_svSe/TBCC006.ABC/vasprun.xml.relax2",
"vasprun.xml",
)
The top level has two folders, so a path means the same thing with or without a token:
/datasets/<dataset id>/<upload id>/<path inside the upload>for public datasets. Datasets have their names indisplay_name. Uploads inside a dataset are listed by id, since naming all uploads of a large dataset at once makes NOMAD time out;upload_nameslooks names up 25 at a time and keeps them, andsearch_uploadsfinds the ids of uploads by name./uploads/<upload id>/<path inside the upload>for your uploads and those shared with you, published or not, as NOMAD's uploads page lists them. Listing/uploadsneeds a token. Published uploads can be read through it without one.
fs = fsspec.filesystem("nomad", token="...")
fs.ls("/uploads") # your uploads, with their names in display_name
A personal access token with the
uploads:read scope is enough. To use a NOMAD Oasis, pass base_url:
fs = fsspec.filesystem("nomad", base_url="https://my-oasis.example.org/nomad-oasis")
NOMAD's rate limits (HTTP 429 and 503) are retried. Redirects are not followed: a base URL that redirects is reported with the address it redirects to.
Development
uv sync
uv run pytest -m "not live" # unit tests
uv run pytest -m live # a few calls to nomad-lab.eu
uv run ruff check . && uv run ruff format --check . && uv run mypy src
License
MIT
Metadata
Release files for nomad-fsspec 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nomad_fsspec-0.3.0.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nomad_fsspec-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / nomad_fsspec-0.3.0.tar.gz
| Download URL | nomad_fsspec-0.3.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3ec11e936ed7387c4211f43a4e0dc6ab07df96d9c3a386171d9d7244b97f226
|
|
BLAKE2b-256 checksum How to use checksums |
7bd791ce4a5e1c2cd7d97230369c7536de75bc466363808047415dfbf1351f57
|
| 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 Oct 12, 2026.
Transparency logRelease files / nomad_fsspec-0.3.0-py3-none-any.whl
| Download URL | nomad_fsspec-0.3.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e74460769116b5aeb5883c304c3624536241c3beb4ca570b777b91a9a2a00038
|
|
BLAKE2b-256 checksum How to use checksums |
978a989d6d08b3b1a9b0f7d395d5fa64c314809ab0b2ddc841f258eb1f46f030
|
| 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 Oct 12, 2026.
Transparency log