lamindb_setup 0.77.6__py2.py3-none-any.whl → 0.77.7__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lamindb_setup/__init__.py +1 -1
- lamindb_setup/_check_setup.py +2 -2
- lamindb_setup/_connect_instance.py +1 -1
- lamindb_setup/_delete.py +1 -1
- lamindb_setup/_init_instance.py +1 -1
- lamindb_setup/core/_settings_instance.py +1 -1
- lamindb_setup/core/_settings_load.py +1 -1
- lamindb_setup/core/_settings_storage.py +3 -4
- {lamindb_setup-0.77.6.dist-info → lamindb_setup-0.77.7.dist-info}/METADATA +2 -2
- {lamindb_setup-0.77.6.dist-info → lamindb_setup-0.77.7.dist-info}/RECORD +12 -12
- {lamindb_setup-0.77.6.dist-info → lamindb_setup-0.77.7.dist-info}/LICENSE +0 -0
- {lamindb_setup-0.77.6.dist-info → lamindb_setup-0.77.7.dist-info}/WHEEL +0 -0
lamindb_setup/__init__.py
CHANGED
lamindb_setup/_check_setup.py
CHANGED
|
@@ -42,9 +42,9 @@ def _get_current_instance_settings() -> InstanceSettings | None:
|
|
|
42
42
|
except Exception as e:
|
|
43
43
|
# user will get more detailed traceback once they run the CLI
|
|
44
44
|
logger.error(
|
|
45
|
-
"Current instance cannot be reached,
|
|
45
|
+
"Current instance cannot be reached, disconnect from it: `lamin disconnect`\n"
|
|
46
46
|
"Alternatively, init or load a connectable instance on the"
|
|
47
|
-
" command line: `lamin
|
|
47
|
+
" command line: `lamin connect <instance>` or `lamin init <...>`"
|
|
48
48
|
)
|
|
49
49
|
raise e
|
|
50
50
|
return isettings
|
|
@@ -256,7 +256,7 @@ def connect(slug: str, **kwargs) -> str | tuple | None:
|
|
|
256
256
|
logger.warning(
|
|
257
257
|
"SQLite file does not exist in the cloud, but exists locally:"
|
|
258
258
|
f" {isettings._sqlite_file_local}\nTo push the file to the cloud,"
|
|
259
|
-
" call: lamin
|
|
259
|
+
" call: lamin disconnect"
|
|
260
260
|
)
|
|
261
261
|
elif _raise_not_found_error:
|
|
262
262
|
raise SystemExit(msg)
|
lamindb_setup/_delete.py
CHANGED
|
@@ -24,7 +24,7 @@ def delete_cache(isettings: InstanceSettings):
|
|
|
24
24
|
# avoid init of root
|
|
25
25
|
root = isettings.storage._root_init
|
|
26
26
|
if not isinstance(root, LocalPathClasses):
|
|
27
|
-
cache_dir = isettings.storage.cache_dir / root
|
|
27
|
+
cache_dir = isettings.storage.cache_dir / root.path
|
|
28
28
|
if cache_dir.exists():
|
|
29
29
|
shutil.rmtree(cache_dir)
|
|
30
30
|
|
lamindb_setup/_init_instance.py
CHANGED
|
@@ -309,7 +309,7 @@ def init(
|
|
|
309
309
|
isettings._cloud_sqlite_locker.lock()
|
|
310
310
|
logger.warning(
|
|
311
311
|
"locked instance (to unlock and push changes to the cloud SQLite file,"
|
|
312
|
-
" call: lamin
|
|
312
|
+
" call: lamin disconnect)"
|
|
313
313
|
)
|
|
314
314
|
if register_on_hub and isettings.dialect != "sqlite":
|
|
315
315
|
from ._schema_metadata import update_schema_in_hub
|
|
@@ -306,7 +306,7 @@ class InstanceSettings:
|
|
|
306
306
|
if self._is_cloud_sqlite:
|
|
307
307
|
logger.warning(
|
|
308
308
|
"updating local SQLite & locking cloud SQLite (sync back & unlock:"
|
|
309
|
-
" lamin
|
|
309
|
+
" lamin disconnect)"
|
|
310
310
|
)
|
|
311
311
|
if lock_cloud_sqlite:
|
|
312
312
|
self._cloud_sqlite_locker.lock()
|
|
@@ -28,7 +28,7 @@ def load_instance_settings(instance_settings_file: Path | None = None):
|
|
|
28
28
|
if instance_settings_file is None:
|
|
29
29
|
instance_settings_file = current_instance_settings_file()
|
|
30
30
|
if not instance_settings_file.exists():
|
|
31
|
-
raise SystemExit("No instance is loaded! Call `lamin init` or `lamin
|
|
31
|
+
raise SystemExit("No instance is loaded! Call `lamin init` or `lamin connect`")
|
|
32
32
|
try:
|
|
33
33
|
settings_store = InstanceSettingsStore(_env_file=instance_settings_file)
|
|
34
34
|
except (ValidationError, TypeError) as error:
|
|
@@ -380,7 +380,7 @@ class StorageSettings:
|
|
|
380
380
|
return True
|
|
381
381
|
|
|
382
382
|
def cloud_to_local(
|
|
383
|
-
self, filepath: UPathStr, cache_key:
|
|
383
|
+
self, filepath: UPathStr, cache_key: str | None = None, **kwargs
|
|
384
384
|
) -> UPath:
|
|
385
385
|
"""Local (or local cache) filepath from filepath."""
|
|
386
386
|
# cache_key is ignored in cloud_to_local_no_update if filepath is local
|
|
@@ -391,13 +391,12 @@ class StorageSettings:
|
|
|
391
391
|
return local_filepath
|
|
392
392
|
|
|
393
393
|
def cloud_to_local_no_update(
|
|
394
|
-
self, filepath: UPathStr, cache_key:
|
|
394
|
+
self, filepath: UPathStr, cache_key: str | None = None
|
|
395
395
|
) -> UPath:
|
|
396
396
|
# cache_key is ignored if filepath is local
|
|
397
397
|
if isinstance(filepath, UPath) and not isinstance(filepath, LocalPathClasses):
|
|
398
|
-
# Path / UPath discards protocol from UPath if present
|
|
399
398
|
local_filepath = self.cache_dir / (
|
|
400
|
-
filepath if cache_key is None else cache_key
|
|
399
|
+
filepath.path if cache_key is None else cache_key
|
|
401
400
|
)
|
|
402
401
|
else:
|
|
403
402
|
local_filepath = filepath
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lamindb_setup
|
|
3
|
-
Version: 0.77.
|
|
3
|
+
Version: 0.77.7
|
|
4
4
|
Summary: Setup & configure LaminDB.
|
|
5
5
|
Author-email: Lamin Labs <open-source@lamin.ai>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -11,7 +11,7 @@ Requires-Dist: dj_database_url>=1.3.0,<3.0.0
|
|
|
11
11
|
Requires-Dist: pydantic-settings
|
|
12
12
|
Requires-Dist: appdirs<2.0.0
|
|
13
13
|
Requires-Dist: requests
|
|
14
|
-
Requires-Dist: universal_pathlib==0.2.
|
|
14
|
+
Requires-Dist: universal_pathlib==0.2.5
|
|
15
15
|
Requires-Dist: botocore<2.0.0
|
|
16
16
|
Requires-Dist: gotrue>=2.1.0,<2.9.0
|
|
17
17
|
Requires-Dist: supabase==2.2.1
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
lamindb_setup/__init__.py,sha256=
|
|
1
|
+
lamindb_setup/__init__.py,sha256=_FQ-Yx811a4SPYm8fztoLcjfnpGZKF1l8HfNB4gpNIo,1714
|
|
2
2
|
lamindb_setup/_cache.py,sha256=wA7mbysANwe8hPNbjDo9bOmXJ0xIyaS5iyxIpxSWji4,846
|
|
3
3
|
lamindb_setup/_check.py,sha256=28PcG8Kp6OpjSLSi1r2boL2Ryeh6xkaCL87HFbjs6GA,129
|
|
4
|
-
lamindb_setup/_check_setup.py,sha256=
|
|
4
|
+
lamindb_setup/_check_setup.py,sha256=s0-XsguVPGUjpNQQ-F3R9adv1XzhEqHeGQPoCQzzWK0,3206
|
|
5
5
|
lamindb_setup/_close.py,sha256=cXNwK7QTTyNFt2XTpLnO3KHljJ7ShOcISk95np_dltE,1239
|
|
6
|
-
lamindb_setup/_connect_instance.py,sha256=
|
|
7
|
-
lamindb_setup/_delete.py,sha256=
|
|
6
|
+
lamindb_setup/_connect_instance.py,sha256=4SYZy8u_FCWGRKiOOGSL8U3mM-PtGnqVWtRNnyI-t2c,15789
|
|
7
|
+
lamindb_setup/_delete.py,sha256=Rob-uF6j6spc8DJLdJfpOL-Lo53FfK8obUXf_cBBoRs,5690
|
|
8
8
|
lamindb_setup/_django.py,sha256=EoyWvFzH0i9wxjy4JZhcoXCTckztP_Mrl6FbYQnMmLE,1534
|
|
9
9
|
lamindb_setup/_entry_points.py,sha256=Hs2oJQOCTaGUdWn-1mufM6qUZr9W_EJ_Oc3f0_Vc0Yw,616
|
|
10
10
|
lamindb_setup/_exportdb.py,sha256=43g77-tH-vAlTn8ig1mMD9-KXLKvxUeDLaq0gVu3l-c,2114
|
|
11
11
|
lamindb_setup/_importdb.py,sha256=yYYShzUajTsR-cTW4CZ-UNDWZY2uE5PAgNbp-wn8Ogc,1874
|
|
12
|
-
lamindb_setup/_init_instance.py,sha256=
|
|
12
|
+
lamindb_setup/_init_instance.py,sha256=A7rvd6Btzu0i57OrY58OEFCsjHNCmWNO2hiMqq-cZiM,13885
|
|
13
13
|
lamindb_setup/_migrate.py,sha256=x_b4k4XRfLSD-EEFMc324yK6DIK7goW33wUytbIWlNs,8917
|
|
14
14
|
lamindb_setup/_register_instance.py,sha256=alQuYp2f8Ct8xvRC1gt8p_HZ0tqCd3gZD3kiPBLPpsI,1269
|
|
15
15
|
lamindb_setup/_schema.py,sha256=b3uzhhWpV5mQtDwhMINc2MabGCnGLESy51ito3yl6Wc,679
|
|
@@ -28,10 +28,10 @@ lamindb_setup/core/_hub_crud.py,sha256=eZErpq9t1Cp2ULBSi457ekrcqfesw4Y6IJgaqyrIN
|
|
|
28
28
|
lamindb_setup/core/_hub_utils.py,sha256=w5IRtrxZcvxmGSJslzuZF89ewkzXV4cCUmZUVrqmAfo,3026
|
|
29
29
|
lamindb_setup/core/_private_django_api.py,sha256=KIn43HOhiRjkbTbddyJqv-WNTTa1bAizbM1tWXoXPBg,2869
|
|
30
30
|
lamindb_setup/core/_settings.py,sha256=tICfPkGVJz9SDmIJu9MvERTt9vx1evvsoOxZ9Rummhs,4757
|
|
31
|
-
lamindb_setup/core/_settings_instance.py,sha256=
|
|
32
|
-
lamindb_setup/core/_settings_load.py,sha256=
|
|
31
|
+
lamindb_setup/core/_settings_instance.py,sha256=o-kwkwpIYGuAhiCTxgdbHmXQqMC_64RiL7qTjulozw4,18602
|
|
32
|
+
lamindb_setup/core/_settings_load.py,sha256=ouc8aqqpS-7yVGGGLK4cickIw22LSB7CbMhDTV5uSH8,3723
|
|
33
33
|
lamindb_setup/core/_settings_save.py,sha256=2sd8o-5MHazfDFO13iRIuCDpmzztn2b5J3fmfw4MGxY,2787
|
|
34
|
-
lamindb_setup/core/_settings_storage.py,sha256=
|
|
34
|
+
lamindb_setup/core/_settings_storage.py,sha256=fMpMwyJaREXNJdbzzoS96kXh77jX4mze7G9hvIEITG0,14767
|
|
35
35
|
lamindb_setup/core/_settings_store.py,sha256=WcsgOmgnu9gztcrhp-N4OONNZyxICHV8M0HdJllTaEo,2219
|
|
36
36
|
lamindb_setup/core/_settings_user.py,sha256=GzDSHu-KCxXcNs8RwBNr6hg3MjQ_fYmb3aIAiaTNiS8,1484
|
|
37
37
|
lamindb_setup/core/_setup_bionty_sources.py,sha256=o2L5Ww8TKgSqJtL4cGUcpJwLNYxA9BZgddhCMCu_E2g,3428
|
|
@@ -41,7 +41,7 @@ lamindb_setup/core/exceptions.py,sha256=eoI7AXgATgDVzgArtN7CUvpaMUC067vsBg5LHCsW
|
|
|
41
41
|
lamindb_setup/core/hashing.py,sha256=Y2cvEaqtm3KwpHqj5ZG2f_sLaXhsQT4oDrmJdHbOQeo,3116
|
|
42
42
|
lamindb_setup/core/types.py,sha256=bcYnZ0uM_2NXKJCl94Mmc-uYrQlRUUVKG3sK2N-F-N4,532
|
|
43
43
|
lamindb_setup/core/upath.py,sha256=EPLLm62q-Y3hZzd-286cynFMttXKDNXNOKL3_QGkeug,27215
|
|
44
|
-
lamindb_setup-0.77.
|
|
45
|
-
lamindb_setup-0.77.
|
|
46
|
-
lamindb_setup-0.77.
|
|
47
|
-
lamindb_setup-0.77.
|
|
44
|
+
lamindb_setup-0.77.7.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
|
|
45
|
+
lamindb_setup-0.77.7.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
|
46
|
+
lamindb_setup-0.77.7.dist-info/METADATA,sha256=-c_4icyiCsqQSnr0Rd5jwP1wYVdUXTG33F-TBIRvTFA,1720
|
|
47
|
+
lamindb_setup-0.77.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|