stilt.storage.FsspecStore#

class stilt.storage.FsspecStore(output_dir: 'str | Path', cache_dir: 'str | Path | None' = None) 'None'[source]#

Output store backed by an fsspec remote filesystem.

Suitable for object stores (s3://, gs://, abfs://) and pseudo-remote backends (memory://, http://). Remote stores publish only canonical simulations/by-id outputs; flat alias views are local filesystem conveniences handled by LocalStore.

Parameters

output_dir

Remote or local URI root used for published outputs.

cache_dir

Optional local cache directory for local_path() downloads.

Methods#

exists(key)

Return whether one canonical output key exists in the backend.

list_prefix(prefix)

Return canonical keys that exist below one backend prefix.

local_path(key)

Return a local path for a output key, downloading and caching as needed.

publish_file(local_path, key)

Upload one local file into the remote store under key.

publish_simulation(sim)

Publish the standard outputs produced by one simulation.

read_bytes(key)

Return the raw bytes stored under one canonical output key.

write_bytes(key, data)

Write raw bytes under one canonical output key.