lamindb_setup 0.81.2__py3-none-any.whl → 0.81.3__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/core/_settings.py +11 -8
- {lamindb_setup-0.81.2.dist-info → lamindb_setup-0.81.3.dist-info}/METADATA +3 -4
- {lamindb_setup-0.81.2.dist-info → lamindb_setup-0.81.3.dist-info}/RECORD +6 -6
- {lamindb_setup-0.81.2.dist-info → lamindb_setup-0.81.3.dist-info}/LICENSE +0 -0
- {lamindb_setup-0.81.2.dist-info → lamindb_setup-0.81.3.dist-info}/WHEEL +0 -0
lamindb_setup/__init__.py
CHANGED
lamindb_setup/core/_settings.py
CHANGED
|
@@ -195,27 +195,30 @@ class SetupPaths:
|
|
|
195
195
|
filepath: UPathStr, cache_key: str | None = None
|
|
196
196
|
) -> UPath:
|
|
197
197
|
"""Local (or local cache) filepath from filepath without synchronization."""
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
if
|
|
198
|
+
if not isinstance(filepath, UPath):
|
|
199
|
+
filepath = UPath(filepath)
|
|
200
|
+
# cache_key is ignored if filepath is a local path
|
|
201
|
+
if not isinstance(filepath, LocalPathClasses):
|
|
201
202
|
# settings is defined further in this file
|
|
202
203
|
local_filepath = settings.cache_dir / (
|
|
203
|
-
filepath.path if cache_key is None else cache_key
|
|
204
|
+
filepath.path if cache_key is None else cache_key # type: ignore
|
|
204
205
|
)
|
|
205
206
|
else:
|
|
206
207
|
local_filepath = filepath
|
|
207
|
-
return
|
|
208
|
+
return local_filepath
|
|
208
209
|
|
|
209
210
|
@staticmethod
|
|
210
211
|
def cloud_to_local(
|
|
211
212
|
filepath: UPathStr, cache_key: str | None = None, **kwargs
|
|
212
213
|
) -> UPath:
|
|
213
214
|
"""Local (or local cache) filepath from filepath."""
|
|
214
|
-
|
|
215
|
+
if not isinstance(filepath, UPath):
|
|
216
|
+
filepath = UPath(filepath)
|
|
217
|
+
# cache_key is ignored in cloud_to_local_no_update if filepath is local
|
|
215
218
|
local_filepath = SetupPaths.cloud_to_local_no_update(filepath, cache_key)
|
|
216
|
-
if
|
|
219
|
+
if not isinstance(filepath, LocalPathClasses):
|
|
217
220
|
local_filepath.parent.mkdir(parents=True, exist_ok=True)
|
|
218
|
-
filepath.synchronize(local_filepath, **kwargs)
|
|
221
|
+
filepath.synchronize(local_filepath, **kwargs) # type: ignore
|
|
219
222
|
return local_filepath
|
|
220
223
|
|
|
221
224
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lamindb_setup
|
|
3
|
-
Version: 0.81.
|
|
3
|
+
Version: 0.81.3
|
|
4
4
|
Summary: Setup & configure LaminDB.
|
|
5
5
|
Author-email: Lamin Labs <open-source@lamin.ai>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -14,12 +14,11 @@ Requires-Dist: appdirs<2.0.0
|
|
|
14
14
|
Requires-Dist: requests
|
|
15
15
|
Requires-Dist: universal_pathlib==0.2.5
|
|
16
16
|
Requires-Dist: botocore<2.0.0
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist: supabase==2.2.1
|
|
17
|
+
Requires-Dist: supabase>=2.8.1,<=2.10.0
|
|
19
18
|
Requires-Dist: psutil
|
|
20
19
|
Requires-Dist: urllib3<2 ; extra == "aws"
|
|
21
20
|
Requires-Dist: aiobotocore[boto3]>=2.5.4,<3.0.0 ; extra == "aws"
|
|
22
|
-
Requires-Dist: s3fs>=2023.12.2,<=2024.10.0 ; extra == "aws"
|
|
21
|
+
Requires-Dist: s3fs>=2023.12.2,<=2024.10.0,!=2024.10.0 ; extra == "aws"
|
|
23
22
|
Requires-Dist: line_profiler ; extra == "dev"
|
|
24
23
|
Requires-Dist: pyjwt<3.0.0 ; extra == "dev"
|
|
25
24
|
Requires-Dist: psycopg2-binary ; extra == "dev"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lamindb_setup/__init__.py,sha256=
|
|
1
|
+
lamindb_setup/__init__.py,sha256=xPpghv8_6NLAzTOyEbqSg4UsrBIVXl-wFpemsz9p40o,1714
|
|
2
2
|
lamindb_setup/_cache.py,sha256=1XnM-V_KprbjpgPY7Bg3FYn53Iz_2_fEgcMOaSdKKbg,1332
|
|
3
3
|
lamindb_setup/_check.py,sha256=28PcG8Kp6OpjSLSi1r2boL2Ryeh6xkaCL87HFbjs6GA,129
|
|
4
4
|
lamindb_setup/_check_setup.py,sha256=6cSfpmVOSgU7YiVHfJpBTGTQ7rrnwunt1pJT_jkgNM8,3196
|
|
@@ -27,7 +27,7 @@ lamindb_setup/core/_hub_core.py,sha256=eUxRz9iJj6RA5-MWgQqqZYAU-di5LQDamRZn6t-VO
|
|
|
27
27
|
lamindb_setup/core/_hub_crud.py,sha256=eZErpq9t1Cp2ULBSi457ekrcqfesw4Y6IJgaqyrINMY,5276
|
|
28
28
|
lamindb_setup/core/_hub_utils.py,sha256=08NwQsb53-tXa_pr-f0tPTN0FeeVf_i1p3dEbEWD0F4,3016
|
|
29
29
|
lamindb_setup/core/_private_django_api.py,sha256=KIn43HOhiRjkbTbddyJqv-WNTTa1bAizbM1tWXoXPBg,2869
|
|
30
|
-
lamindb_setup/core/_settings.py,sha256=
|
|
30
|
+
lamindb_setup/core/_settings.py,sha256=RostEkf87oC8E4D8LMxb5NcnFKu9I8YFDMehLbwlwhE,7988
|
|
31
31
|
lamindb_setup/core/_settings_instance.py,sha256=ajcq9zRNE598tTqyMkMqaEOubVfFeE998DPtbgyzK3A,18801
|
|
32
32
|
lamindb_setup/core/_settings_load.py,sha256=5OpghcbkrK9KBM_0Iu-61FTI76UbOpPkkJpUittXS-w,4098
|
|
33
33
|
lamindb_setup/core/_settings_save.py,sha256=rxGxgaK5i9exKqSJERQQyY1WZio20meoQJoYXlVW-1w,3138
|
|
@@ -41,7 +41,7 @@ lamindb_setup/core/exceptions.py,sha256=4NpLUNUIfXYVTFX2FvLZF8RW34exk2Vn2X3G4Yhn
|
|
|
41
41
|
lamindb_setup/core/hashing.py,sha256=26dtak7XgmrWa_D1zuDyxObRQcriMtnc1yEigkKASmM,3142
|
|
42
42
|
lamindb_setup/core/types.py,sha256=zJii2le38BJUmsNVvzDrbzGYr0yaeb-9Rw9IKmsBr3k,523
|
|
43
43
|
lamindb_setup/core/upath.py,sha256=a0yxP9dmujTn_hkDC0E2UuVsX-Img4i0kVNB-OV5K1s,29038
|
|
44
|
-
lamindb_setup-0.81.
|
|
45
|
-
lamindb_setup-0.81.
|
|
46
|
-
lamindb_setup-0.81.
|
|
47
|
-
lamindb_setup-0.81.
|
|
44
|
+
lamindb_setup-0.81.3.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
|
|
45
|
+
lamindb_setup-0.81.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
46
|
+
lamindb_setup-0.81.3.dist-info/METADATA,sha256=VPKC024x5sheF1oT-iZRMb4k77WARFy2Y2PwA4Z_S9E,1730
|
|
47
|
+
lamindb_setup-0.81.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|