stilt.store.FsspecStore#
- class stilt.store.FsspecStore(root: 'str', cache_dir: 'str | Path | None' = None) 'None'[source]#
Store backed by an fsspec filesystem such as
s3://orgs://.local_pathdownloads a file once into a local cache that mirrors the key layout. Writing or deleting a key drops its cached copy, so a rewritten file is downloaded again.
Parameters
rootstrURI that keys are relative to.
cache_dirstr or Path, optionalLocal directory for downloaded files. A temporary directory is created on first use when omitted.
Methods#
|
Remove key if it exists. |
|
Return whether key exists. |
|
Return a local copy of key, downloading it on first use. |
|
Upload a local file to key. |
|
Return the bytes stored under key. |
|
Write data under key. |