lamindb 0.73.1__py3-none-any.whl → 0.73.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/__init__.py +1 -1
- lamindb/_registry.py +1 -1
- lamindb/_view.py +9 -2
- {lamindb-0.73.1.dist-info → lamindb-0.73.2.dist-info}/METADATA +3 -3
- {lamindb-0.73.1.dist-info → lamindb-0.73.2.dist-info}/RECORD +7 -7
- {lamindb-0.73.1.dist-info → lamindb-0.73.2.dist-info}/LICENSE +0 -0
- {lamindb-0.73.1.dist-info → lamindb-0.73.2.dist-info}/WHEEL +0 -0
lamindb/__init__.py
CHANGED
lamindb/_registry.py
CHANGED
@@ -54,7 +54,7 @@ def suggest_records_with_similar_names(record: Registry, kwargs) -> bool:
|
|
54
54
|
"""
|
55
55
|
if kwargs.get("name") is None:
|
56
56
|
return False
|
57
|
-
queryset = _search(record.__class__, kwargs["name"], truncate_words=True, limit=
|
57
|
+
queryset = _search(record.__class__, kwargs["name"], truncate_words=True, limit=20)
|
58
58
|
if not queryset.exists(): # empty queryset
|
59
59
|
return False
|
60
60
|
for alternative_record in queryset:
|
lamindb/_view.py
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
+
import builtins
|
3
4
|
import importlib
|
4
5
|
import inspect
|
5
6
|
|
6
|
-
from IPython.display import display
|
7
7
|
from lamin_utils import colors, logger
|
8
8
|
from lamindb_setup import settings
|
9
9
|
from lamindb_setup._init_instance import get_schema_module_name
|
10
10
|
from lnschema_core import Registry
|
11
11
|
|
12
|
+
is_run_from_ipython = getattr(builtins, "__IPYTHON__", False)
|
13
|
+
|
12
14
|
|
13
15
|
def view(
|
14
16
|
n: int = 7, schema: str | None = None, registries: list[str] | None = None
|
@@ -25,6 +27,11 @@ def view(
|
|
25
27
|
Examples:
|
26
28
|
>>> ln.view()
|
27
29
|
"""
|
30
|
+
if is_run_from_ipython:
|
31
|
+
from IPython.display import display as show
|
32
|
+
else:
|
33
|
+
show = logger.print
|
34
|
+
|
28
35
|
if schema is not None:
|
29
36
|
schema_names = [schema]
|
30
37
|
else:
|
@@ -60,4 +67,4 @@ def view(
|
|
60
67
|
df = orm.df().iloc[-n:]
|
61
68
|
if df.shape[0] > 0:
|
62
69
|
logger.print(colors.blue(colors.bold(orm.__name__)))
|
63
|
-
|
70
|
+
show(df)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lamindb
|
3
|
-
Version: 0.73.
|
3
|
+
Version: 0.73.2
|
4
4
|
Summary: A data framework for biology.
|
5
5
|
Author-email: Lamin Labs <open-source@lamin.ai>
|
6
6
|
Requires-Python: >=3.8
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.9
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
12
|
-
Requires-Dist: lnschema_core==0.
|
12
|
+
Requires-Dist: lnschema_core==0.69.0
|
13
13
|
Requires-Dist: lamindb_setup==0.73.1
|
14
14
|
Requires-Dist: lamin_utils==0.13.2
|
15
15
|
Requires-Dist: lamin_cli==0.14.0
|
@@ -25,7 +25,7 @@ Requires-Dist: graphviz
|
|
25
25
|
Requires-Dist: psycopg2-binary
|
26
26
|
Requires-Dist: psutil
|
27
27
|
Requires-Dist: lamindb_setup[aws] ; extra == "aws"
|
28
|
-
Requires-Dist: bionty==0.
|
28
|
+
Requires-Dist: bionty==0.44.0 ; extra == "bionty"
|
29
29
|
Requires-Dist: pandas<2 ; extra == "dev"
|
30
30
|
Requires-Dist: pre-commit ; extra == "dev"
|
31
31
|
Requires-Dist: nox ; extra == "dev"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lamindb/__init__.py,sha256=
|
1
|
+
lamindb/__init__.py,sha256=ewJ0w3ggVARCnYyCLLJ_24n2eQDgjK3TXkzjyBn67sE,2207
|
2
2
|
lamindb/_annotate.py,sha256=CScyKVB3k_x5p0pihxO1UrTFBCvPcSSjBXvGY3YgTLs,44381
|
3
3
|
lamindb/_artifact.py,sha256=uMUlXCGU1JYSnOYMxCwEe_1MslbcnZACP9SYL-a4zRk,40816
|
4
4
|
lamindb/_can_validate.py,sha256=s1q0lxplqnhytrVgArBTm05XKMMmpreK0ZlVCsd2jjk,14849
|
@@ -12,14 +12,14 @@ lamindb/_is_versioned.py,sha256=0PgRCmxEmYDcAjllLSOYZm132B1lW6QgmBBERhRyFt0,1341
|
|
12
12
|
lamindb/_parents.py,sha256=kb5AHkntpTP5g2lk1aPL0FmIilYZYVZvj6stddFOI40,15075
|
13
13
|
lamindb/_query_manager.py,sha256=qxwrBM8UmNQnUiNOfe84YN6NpfJBg2wQ2JqUfH6HHhc,4225
|
14
14
|
lamindb/_query_set.py,sha256=JgdJY2pACCqjC4AHjFiMAdq_qjeuhEo2NUX68f6ODwk,11597
|
15
|
-
lamindb/_registry.py,sha256=
|
15
|
+
lamindb/_registry.py,sha256=hoBkVl8D4yLQKMoOhVIDTNkO_401yCoVHI4MlNHDZgI,18756
|
16
16
|
lamindb/_run.py,sha256=b7A52M1On3QzFgIYyfQoz5Kk7V3wcu9p_Prq5bzd8v8,1838
|
17
17
|
lamindb/_save.py,sha256=It4XO448D8NG2cReo9Xy0lQBQdkMm_rCx_TGD1qZWWc,11864
|
18
18
|
lamindb/_storage.py,sha256=VW8xq3VRv58-ciholvOdlcgvp_OIlLxx5GxLt-e2Irs,614
|
19
19
|
lamindb/_transform.py,sha256=E9C7psuOnsNrUQpWRuGgEUM8_pc7YhDn7n4ieHzB4X0,3169
|
20
20
|
lamindb/_ulabel.py,sha256=XDSdZBXX_ki5s1vOths3MjF2x5DPggBR_PV_KF4SGyg,1611
|
21
21
|
lamindb/_utils.py,sha256=LGdiW4k3GClLz65vKAVRkL6Tw-Gkx9DWAdez1jyA5bE,428
|
22
|
-
lamindb/_view.py,sha256=
|
22
|
+
lamindb/_view.py,sha256=NdWWF75rmkCHefqBViUnsHLu3OViJ1z_bEvfcedydsw,2330
|
23
23
|
lamindb/core/__init__.py,sha256=RkE5BrdOWNHQIz60z1npYoRim-Ot24-L7JTmLXd2WTU,1363
|
24
24
|
lamindb/core/_data.py,sha256=xkjEvAhWeEEYRIZIi9Qbb0aEWiUPttq-qnCLx_2xy48,16172
|
25
25
|
lamindb/core/_feature_manager.py,sha256=h7puH83LjaiJrBlmw3wSkUVO5c_LVfubCJKklPryP84,26205
|
@@ -49,7 +49,7 @@ lamindb/integrations/__init__.py,sha256=aH2PmO2m4-vwIifMYTB0Fyyr_gZWtVnV71jT0tVW
|
|
49
49
|
lamindb/integrations/_vitessce.py,sha256=Qd39OuNsL0GXU7nMvEWLRRESFQ0mwGf_ePMJE_FDYm8,2639
|
50
50
|
lamindb/setup/__init__.py,sha256=OwZpZzPDv5lPPGXZP7-zK6UdO4FHvvuBh439yZvIp3A,410
|
51
51
|
lamindb/setup/core/__init__.py,sha256=SevlVrc2AZWL3uALbE5sopxBnIZPWZ1IB0NBDudiAL8,167
|
52
|
-
lamindb-0.73.
|
53
|
-
lamindb-0.73.
|
54
|
-
lamindb-0.73.
|
55
|
-
lamindb-0.73.
|
52
|
+
lamindb-0.73.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
53
|
+
lamindb-0.73.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
54
|
+
lamindb-0.73.2.dist-info/METADATA,sha256=bsHf6jMyHwkf2btB1WlAnrsfjN-9ue3xBK0thFSQt_s,2735
|
55
|
+
lamindb-0.73.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|