stilt.store.FsspecStore#

class stilt.store.FsspecStore(root: 'str', cache_dir: 'str | Path | None' = None) → 'None'[source]#

Store backed by an fsspec filesystem (s3://, gs://, memory://, …).

local_path downloads through simplecache into cache_dir (a temp directory when omitted).

Methods#

exists(key)

Return whether the key has been written.

local_path(key)

Download the key to the cache and return the local path.

publish_file(local_path, key)

Upload a finished local file to the key; a missing source is ignored.

read_bytes(key)

Read the key's bytes from the remote filesystem.

write_bytes(key, data)

Write bytes to the key, creating parent prefixes.