lamindb_setup.core.StorageSettings¶
- class lamindb_setup.core.StorageSettings(root, region=None, uid=None, uuid=None, instance_id=None, access_token=None)¶
Bases:
object
Settings for a given storage location (local or cloud).
Attributes¶
- cache_dir¶
Cache root, a local directory to cache cloud files.
- id¶
Storage id in current instance.
- is_on_hub¶
Is this instance on the hub.
Only works if user has access to the instance.
- record¶
Storage record in current instance.
- region¶
Storage region.
- root¶
Root storage location.
- root_as_str¶
Formatted root string.
- type¶
AWS S3 vs. Google Cloud vs. local.
Returns the protocol as a string: “local”, “s3”, “gs”.
- type_is_cloud¶
True
ifstorage_root
is in cloud,False
otherwise.
- uid¶
Storage id.
Methods¶