lamindb_setup 1.12.0__py3-none-any.whl → 1.12.2__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 CHANGED
@@ -35,9 +35,15 @@ Modules & settings:
35
35
 
36
36
  """
37
37
 
38
- __version__ = "1.12.0" # denote a release candidate for 0.1.0 with 0.1rc1
38
+ __version__ = "1.12.2" # 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
- instance_result["fine_grained_access"]
167
- ), # can be None
168
- db_permissions=instance_result.get("db_permissions", None),
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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lamindb_setup
3
- Version: 1.12.0
3
+ Version: 1.12.2
4
4
  Summary: Setup & configure LaminDB.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Requires-Python: >=3.10
@@ -20,8 +20,7 @@ Requires-Dist: storage3!=0.11.2; python_version < '3.11'
20
20
  Requires-Dist: pyjwt<3.0.0
21
21
  Requires-Dist: psutil
22
22
  Requires-Dist: packaging
23
- Requires-Dist: urllib3<2 ; extra == "aws"
24
- Requires-Dist: aiobotocore[boto3]>=2.5.4,<3.0.0 ; extra == "aws"
23
+ Requires-Dist: aiobotocore[boto3]>=2.12.4,<3.0.0 ; extra == "aws"
25
24
  Requires-Dist: s3fs>=2023.12.2,<=2025.7.0,!=2024.10.0 ; extra == "aws"
26
25
  Requires-Dist: line_profiler ; extra == "dev"
27
26
  Requires-Dist: psycopg2-binary ; extra == "dev"
@@ -1,8 +1,8 @@
1
- lamindb_setup/__init__.py,sha256=lU96Y8vk4EcJ-Uhu-vEWooTbhhYTb2LQ_bkBjA7jD4Q,2783
1
+ lamindb_setup/__init__.py,sha256=3WL1Tb4ewlV8h1mrJAlhlYkKmBJJDDkVDTFLMeLC9hE,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=kp4Nke_ksHb6xZ-z64jRN-NcfLKzzzaZpsI1a83AeIA,17701
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=jg-7M-wlfBRQa8GzJLotyCSwt7GIfQpBwl0_Tbejelg,23320
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.0.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
48
- lamindb_setup-1.12.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
49
- lamindb_setup-1.12.0.dist-info/METADATA,sha256=4cc1p3XQml5mHnes3thxdnu9HZeectGVXmPNw9C3Al4,1839
50
- lamindb_setup-1.12.0.dist-info/RECORD,,
47
+ lamindb_setup-1.12.2.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
48
+ lamindb_setup-1.12.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
49
+ lamindb_setup-1.12.2.dist-info/METADATA,sha256=6x5IAxLh33hQYnOh9EIIckgewprGjwTotuxNmHAlzXI,1798
50
+ lamindb_setup-1.12.2.dist-info/RECORD,,