lamindb.setup.core.SetupSettings¶
- class lamindb.setup.core.SetupSettings¶
Bases:
objectSetup settings.
Attributes¶
- property auto_connect: bool¶
Auto-connect to current instance upon
import lamindb.Upon installing
lamindb, this setting isFalse.Upon calling
lamin initorlamin connecton the CLI, this setting is switched toTrue.ln.connect()doesn’t change the value of this setting.You can manually change this setting
in Python:
ln.setup.settings.auto_connect = True/Falsevia the CLI:
lamin settings set auto-connect true/false
- property instance: InstanceSettings¶
Settings of current LaminDB instance.
- property paths: type[SetupPaths]¶
Convert cloud paths to lamindb local paths.
Use
settings.paths.cloud_to_local_no_updateorsettings.paths.cloud_to_local.
- property private_django_api: bool¶
Turn internal Django API private to clean up the API (default
False).This patches your local pip-installed django installation. You can undo the patch by setting this back to
False.
- property settings_dir: Path¶
The directory that holds locally persisted settings.
- property storage: StorageSettings¶
Settings of default storage.
- property user: UserSettings¶
Settings of current user.