lamindb.connect

lamindb.connect(instance=None, **kwargs)

Connect to an instance.

Parameters:

instance (str | None, default: None) – Pass a slug (account/name) or URL (https://lamin.ai/account/name). If None, looks for an environment variable LAMIN_CURRENT_INSTANCE to get the instance identifier. If it doesn’t find this variable, it connects to the instance that was connected with lamin connect through the CLI.

Return type:

str | tuple | None