lamindb_setup 1.12.0__py3-none-any.whl → 1.12.1__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 +7 -1
- lamindb_setup/_connect_instance.py +4 -4
- lamindb_setup/core/_settings_instance.py +13 -0
- {lamindb_setup-1.12.0.dist-info → lamindb_setup-1.12.1.dist-info}/METADATA +1 -1
- {lamindb_setup-1.12.0.dist-info → lamindb_setup-1.12.1.dist-info}/RECORD +7 -7
- {lamindb_setup-1.12.0.dist-info → lamindb_setup-1.12.1.dist-info}/LICENSE +0 -0
- {lamindb_setup-1.12.0.dist-info → lamindb_setup-1.12.1.dist-info}/WHEEL +0 -0
lamindb_setup/__init__.py
CHANGED
|
@@ -35,9 +35,15 @@ Modules & settings:
|
|
|
35
35
|
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
|
-
__version__ = "1.12.
|
|
38
|
+
__version__ = "1.12.1" # denote a release candidate for 0.1.0 with 0.1rc1
|
|
39
39
|
|
|
40
40
|
import os
|
|
41
|
+
import warnings
|
|
42
|
+
|
|
43
|
+
# ignore for now, remove this after supabase upgrade in the deps
|
|
44
|
+
warnings.filterwarnings("ignore", category=DeprecationWarning, module="supabase")
|
|
45
|
+
warnings.filterwarnings("ignore", category=DeprecationWarning, module="supafunc")
|
|
46
|
+
warnings.filterwarnings("ignore", category=DeprecationWarning, module="postgrest")
|
|
41
47
|
|
|
42
48
|
from packaging import version as packaging_version
|
|
43
49
|
|
|
@@ -162,10 +162,10 @@ def _connect_instance(
|
|
|
162
162
|
schema_id=None
|
|
163
163
|
if (schema_id := instance_result["schema_id"]) is None
|
|
164
164
|
else UUID(schema_id),
|
|
165
|
-
fine_grained_access=bool(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
fine_grained_access=bool(instance_result["fine_grained_access"]),
|
|
166
|
+
db_permissions=instance_result.get("db_permissions", None)
|
|
167
|
+
if not use_root_db_user
|
|
168
|
+
else "write",
|
|
169
169
|
)
|
|
170
170
|
else:
|
|
171
171
|
if hub_result != "anonymous-user":
|
|
@@ -354,6 +354,19 @@ class InstanceSettings:
|
|
|
354
354
|
return os.environ["LAMIN_API_URL"]
|
|
355
355
|
return self._api_url
|
|
356
356
|
|
|
357
|
+
@property
|
|
358
|
+
def ui_url(self) -> str | None:
|
|
359
|
+
"""URL for UI.
|
|
360
|
+
|
|
361
|
+
Use this URL for accessing the UI related to this instance.
|
|
362
|
+
"""
|
|
363
|
+
if self.api_url is None:
|
|
364
|
+
return None
|
|
365
|
+
if "lamin.ai" in self.api_url:
|
|
366
|
+
return "https://lamin.ai"
|
|
367
|
+
else:
|
|
368
|
+
return self.api_url.replace("/api", "")
|
|
369
|
+
|
|
357
370
|
@property
|
|
358
371
|
def available_spaces(self) -> dict | None:
|
|
359
372
|
"""Available spaces with roles for instances fine-grained permissions.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
lamindb_setup/__init__.py,sha256=
|
|
1
|
+
lamindb_setup/__init__.py,sha256=lH8RfaY2XMMqOwAr4mTa8B-FS1rwxNo3aslU6S7g2wg,3112
|
|
2
2
|
lamindb_setup/_cache.py,sha256=pGvDNVHGx4HWr_6w5ajqEJOdysmaGc6F221qFnXkT-k,2747
|
|
3
3
|
lamindb_setup/_check.py,sha256=28PcG8Kp6OpjSLSi1r2boL2Ryeh6xkaCL87HFbjs6GA,129
|
|
4
4
|
lamindb_setup/_check_setup.py,sha256=ToKMxsUq8dQBQh8baOrNVlSb1iC8h4zTg5dV8wMu0W4,6760
|
|
5
|
-
lamindb_setup/_connect_instance.py,sha256=
|
|
5
|
+
lamindb_setup/_connect_instance.py,sha256=OSOGZEj_9JsLvZT9JsXGvbC96DY4akmbAOuqUKyjjiE,17717
|
|
6
6
|
lamindb_setup/_delete.py,sha256=KS3r-xGFuDmAbzPUy-9JR-YnPShYdaHjDRQrAmXQ0qM,5863
|
|
7
7
|
lamindb_setup/_disconnect.py,sha256=FT8EpCm5XXDdhDH7QtAnkO3KPatq2HqT9VXGNjgJDbk,1232
|
|
8
8
|
lamindb_setup/_django.py,sha256=uIQflpkp8l3axyPaKURlk3kacgpElVP5KOKmFxYSMGk,1454
|
|
@@ -31,7 +31,7 @@ lamindb_setup/core/_hub_crud.py,sha256=j6516H82kLjFUNPqFGUINbDw9YbofMgjxadGzYb0O
|
|
|
31
31
|
lamindb_setup/core/_hub_utils.py,sha256=6dyDGyzYFgVfR_lE3VN3CP1jGp98gxPtr-T91PAP05U,2687
|
|
32
32
|
lamindb_setup/core/_private_django_api.py,sha256=By63l3vIEtK1pq246FhHq3tslxsaTJGKm5VakYluWp4,2656
|
|
33
33
|
lamindb_setup/core/_settings.py,sha256=0nz3HKnBuXdDY4R2UJQts3ZVC7vROpsBAxWIgZNz800,14017
|
|
34
|
-
lamindb_setup/core/_settings_instance.py,sha256=
|
|
34
|
+
lamindb_setup/core/_settings_instance.py,sha256=oLRH_BlQ6EshZtpXZ9v4qk_2bUZDG5Km4qjqpII3EPA,23675
|
|
35
35
|
lamindb_setup/core/_settings_load.py,sha256=j20cy3J56ZBHLDfB2A8oKjekNetMNsy0_W3eWD36pWI,5161
|
|
36
36
|
lamindb_setup/core/_settings_save.py,sha256=jh412jXIAbIYvnSoW9riBFePRAa4vmPm-ScYD0smlnw,3292
|
|
37
37
|
lamindb_setup/core/_settings_storage.py,sha256=pyU25hP5rQYjVe0tFPR8P6TzAYzu1NpT-PIbXoxfV18,15348
|
|
@@ -44,7 +44,7 @@ lamindb_setup/core/exceptions.py,sha256=qjMzqy_uzPA7mCOdnoWnS_fdA6OWbdZGftz-YYpl
|
|
|
44
44
|
lamindb_setup/core/hashing.py,sha256=Y8Uc5uSGTfU6L2R_gb5w8DdHhGRog7RnkK-e9FEMjPY,3680
|
|
45
45
|
lamindb_setup/core/types.py,sha256=T7NwspfRHgIIpYsXDcApks8jkOlGeGRW-YbVLB7jNIo,67
|
|
46
46
|
lamindb_setup/core/upath.py,sha256=uk3LpDA7Jbk1GzUb8hCsxByg5cMYTjPusIvwyXe8g3Y,36023
|
|
47
|
-
lamindb_setup-1.12.
|
|
48
|
-
lamindb_setup-1.12.
|
|
49
|
-
lamindb_setup-1.12.
|
|
50
|
-
lamindb_setup-1.12.
|
|
47
|
+
lamindb_setup-1.12.1.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
|
|
48
|
+
lamindb_setup-1.12.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
|
49
|
+
lamindb_setup-1.12.1.dist-info/METADATA,sha256=RzkBLCAlLcUzJtjzWutWxXI75Q81ZQuuVYWtHwvZXcw,1839
|
|
50
|
+
lamindb_setup-1.12.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|