lamindb_setup 1.18.0__py3-none-any.whl → 1.18.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,7 +35,7 @@ Migration management
35
35
 
36
36
  """
37
37
 
38
- __version__ = "1.18.0" # denote a release candidate for 0.1.0 with 0.1rc1
38
+ __version__ = "1.18.2" # denote a release candidate for 0.1.0 with 0.1rc1
39
39
 
40
40
  import os
41
41
  import warnings
@@ -49,7 +49,7 @@ def load_cache_path_from_settings(storage_settings: Path | None = None) -> Path
49
49
 
50
50
  def find_module_candidates():
51
51
  """Find all local packages that depend on lamindb."""
52
- candidates = ["bionty", "wetlab"]
52
+ candidates = ["bionty", "pertdb"]
53
53
  return [c for c in candidates if find_spec(c) is not None]
54
54
 
55
55
 
@@ -276,6 +276,27 @@ def setup_django(
276
276
  ],
277
277
  STATIC_URL="static/",
278
278
  )
279
+ if logger._verbosity == 5: # debug-level verbosity
280
+ kwargs.update(
281
+ {
282
+ "DEBUG": True,
283
+ "LOGGING": {
284
+ "version": 1,
285
+ "handlers": {
286
+ "console": {
287
+ "level": "DEBUG",
288
+ "class": "logging.StreamHandler",
289
+ }
290
+ },
291
+ "loggers": {
292
+ "django.db.backends": {
293
+ "level": "DEBUG",
294
+ "handlers": ["console"],
295
+ }
296
+ },
297
+ },
298
+ }
299
+ )
279
300
  settings.configure(**kwargs)
280
301
  # this isn't needed the first time django.setup() is called, but for unknown reason it's needed the second time
281
302
  # the first time, it already defaults to true
Binary file
lamindb_setup/io.py CHANGED
@@ -156,7 +156,7 @@ def export_db(
156
156
  Ensure that you connect to postgres instances using `use_root_db_user=True`.
157
157
 
158
158
  Args:
159
- module_names: Module names to export (e.g., ["lamindb", "bionty", "wetlab"]).
159
+ module_names: Module names to export (e.g., ["lamindb", "bionty", "pertdb"]).
160
160
  Defaults to "lamindb" if not provided.
161
161
  output_dir: Directory path for exported parquet files.
162
162
  max_workers: Number of parallel processes.
@@ -345,7 +345,7 @@ def import_db(
345
345
 
346
346
  Args:
347
347
  input_dir: Directory containing parquet files to import.
348
- module_names: Module names to import (e.g., ["lamindb", "bionty", "wetlab"]).
348
+ module_names: Module names to import (e.g., ["lamindb", "bionty", "pertdb"]).
349
349
  if_exists: How to behave if table exists: 'fail', 'replace', or 'append'.
350
350
  If set to 'replace', existing data is deleted and new data is imported. All PKs and indices are not guaranteed to be preserved which can lead to write errors.
351
351
  If set to 'append', new data is added to existing data without clearing the table. All PKs and indices are preserved allowing write operations but database size will greatly increase.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lamindb_setup
3
- Version: 1.18.0
3
+ Version: 1.18.2
4
4
  Summary: Setup & configure LaminDB.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Requires-Python: >=3.10
@@ -1,4 +1,4 @@
1
- lamindb_setup/__init__.py,sha256=6Pygspa2jV-yke0v_7lZ1NXI-t11fGYpou54sYJIPl0,3270
1
+ lamindb_setup/__init__.py,sha256=OWvBBPaPyHMNfdjJ5WFK-6shCEBBOUU9exBzP234sDI,3270
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=zPQho12dctJYjnZxpumq2r7XRvXwrNyWi5-UMRPSeuE,4297
@@ -16,7 +16,7 @@ lamindb_setup/_set_managed_storage.py,sha256=xik6Amz8yS4R7ZIK8BVdNyvOo_ShBMjsDMA
16
16
  lamindb_setup/_setup_user.py,sha256=9CwKUru2jza1vXu4A5V-q-oXnbIXwR_YwjKbVnETK7Q,6931
17
17
  lamindb_setup/_silence_loggers.py,sha256=oQnvnvieqxARQQMwQkR82EJVk1TaM-Bo9o0UCOsCcXY,1697
18
18
  lamindb_setup/errors.py,sha256=3u77okYz2NHXbX-TZkhHf5mJAXaaIIPBFPD21iSyRPg,1620
19
- lamindb_setup/io.py,sha256=stTE6VHCIpLK1ueRuWEJGh35wo9Qd1NcNN1TnLEbK-U,17156
19
+ lamindb_setup/io.py,sha256=hOANnrXd60VPrPmOx1pwWB-UiJMevqfVWyWnncMSBhg,17156
20
20
  lamindb_setup/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  lamindb_setup/types.py,sha256=fuQxZJnrGYe7a_Ju9n1RqO-HhkOAr1l1xjpAg9dmBu8,605
22
22
  lamindb_setup/core/__init__.py,sha256=oSTXxNCx6yfoqaHYTZM9qHuZKdMUIUF2DdXw4gBMBU4,592
@@ -32,20 +32,20 @@ lamindb_setup/core/_hub_utils.py,sha256=6dyDGyzYFgVfR_lE3VN3CP1jGp98gxPtr-T91PAP
32
32
  lamindb_setup/core/_private_django_api.py,sha256=e-9WiGkI7g683nOdTcScS_fPG-_neNvrcWuAI9NEeQs,2529
33
33
  lamindb_setup/core/_settings.py,sha256=LTeh2jsM01GHW2ZTrcc6rXNz6qIUT0VPEzpE9I8tg3Q,15497
34
34
  lamindb_setup/core/_settings_instance.py,sha256=KoKwvSqOGEieGC-I5Dd0kIr_Q9OknRlno-nj3ZaX8R8,24903
35
- lamindb_setup/core/_settings_load.py,sha256=D6r0fiqJznHhTN_apGlrKfYzl0g21shIaV4z4zEr7Z8,5780
35
+ lamindb_setup/core/_settings_load.py,sha256=wYFRwbrwgpVmpAQKEjKJEefJxh751snfTvutZG3oFMw,5780
36
36
  lamindb_setup/core/_settings_save.py,sha256=96mWdYLyfvbnG_ok_vK4x7jm-rtqcWCD1OHEt2QSAms,3328
37
37
  lamindb_setup/core/_settings_storage.py,sha256=e1FQ2uh13Cuw9Z5k6d71C825f6ISUnc1LtkDUO0QUIA,15590
38
38
  lamindb_setup/core/_settings_store.py,sha256=auZssUBb6qE5oSqdGiHhqI2B46qSpegX89VwObPQksk,2601
39
39
  lamindb_setup/core/_settings_user.py,sha256=gFfyMf-738onbh1Mf4wsmLlenQJPtjQfpUgKnOlqc2o,1453
40
40
  lamindb_setup/core/_setup_bionty_sources.py,sha256=ox3X-SHiHa2lNPSWjwZhINypbLacX6kGwH6hVVrSFZc,1505
41
41
  lamindb_setup/core/cloud_sqlite_locker.py,sha256=H_CTUCjURFXwD1cCtV_Jn0_60iztZTkaesLLXIBgIxc,7204
42
- lamindb_setup/core/django.py,sha256=X_KDP6c9EgqG0JoHg-igv-rvpdZ9mF1LeeoTtZjVICc,13649
42
+ lamindb_setup/core/django.py,sha256=hy8SofeSKaOvsOiyrge1qgAp1fmcFiWQV8pIFhFIoeo,14420
43
43
  lamindb_setup/core/exceptions.py,sha256=qjMzqy_uzPA7mCOdnoWnS_fdA6OWbdZGftz-YYplrY0,84
44
44
  lamindb_setup/core/hashing.py,sha256=4EDiMkdn96ct3oVkB64_4ujj6_EY5Vt8WMOMT5qnewI,3695
45
- lamindb_setup/core/lamin.db.gz,sha256=cSWQ_ak6QN-SMyFA4x6zv-e2rNXr1IOrhDU5AfVAADc,81394
45
+ lamindb_setup/core/lamin.db.gz,sha256=sFh_Qgg4Krui0lW4g2CrGfKpL59-UjOMgAJ7n0xP4XE,78228
46
46
  lamindb_setup/core/types.py,sha256=T7NwspfRHgIIpYsXDcApks8jkOlGeGRW-YbVLB7jNIo,67
47
47
  lamindb_setup/core/upath.py,sha256=zlPZcDRHDYT7OcoOiX_w9koAzfBr9q8hB66OPwhTpBo,36504
48
- lamindb_setup-1.18.0.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
49
- lamindb_setup-1.18.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
50
- lamindb_setup-1.18.0.dist-info/METADATA,sha256=ooPr_CBzeS_-SFrbv6T9ixt2tZ7LEZdBUpPlohatn7w,1778
51
- lamindb_setup-1.18.0.dist-info/RECORD,,
48
+ lamindb_setup-1.18.2.dist-info/LICENSE,sha256=UOZ1F5fFDe3XXvG4oNnkL1-Ecun7zpHzRxjp-XsMeAo,11324
49
+ lamindb_setup-1.18.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
50
+ lamindb_setup-1.18.2.dist-info/METADATA,sha256=YtsE-PHLZ4iGA5Z6xo7ftOPXrtdcDgSkGWx_VUcgJkE,1778
51
+ lamindb_setup-1.18.2.dist-info/RECORD,,