lamindb_setup.core.StorageSettings#
- class lamindb_setup.core.StorageSettings(root, region=None, is_hybrid=False, uid=None, uuid=None, access_token=None)#
Bases:
object
Manage cloud or local storage settings.
Attributes
- cache_dir UPath#
Cache root, a local directory to cache cloud files.
- id int#
Storage id.
- is_cloud bool#
True
ifstorage_root
is in cloud,False
otherwise.
- is_hybrid bool#
Qualifies storage mode.
A storage location can be local, in the cloud, or hybrid. See
type
.Hybrid means that a default local storage location is backed by an optional cloud storage location.
- record Any#
Storage record.
- region Optional#
Storage region.
- remote_root UPath#
Remote storage location. Only needed for hybrid storage.
- root UPath#
Root storage location.
- root_as_str str#
Formatted root string.
- type Literal#
AWS S3 vs. Google Cloud vs. local.
Returns the protocol as a string: “local”, “s3”, “gs”.
- uid Optional#
Storage id.
- uuid Optional#
Storage uuid.
Methods