lamindb 0.76.13__py3-none-any.whl → 0.76.15__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/_artifact.py +39 -37
- lamindb/_can_validate.py +6 -6
- lamindb/_collection.py +18 -5
- lamindb/_curate.py +298 -172
- lamindb/_feature.py +2 -3
- lamindb/_feature_set.py +1 -2
- lamindb/_from_values.py +1 -5
- lamindb/_is_versioned.py +1 -2
- lamindb/_parents.py +28 -5
- lamindb/_query_manager.py +1 -2
- lamindb/_query_set.py +8 -4
- lamindb/_record.py +78 -4
- lamindb/_save.py +2 -2
- lamindb/_transform.py +1 -2
- lamindb/_ulabel.py +1 -1
- lamindb/core/__init__.py +2 -0
- lamindb/core/_data.py +19 -7
- lamindb/core/_feature_manager.py +76 -42
- lamindb/core/_label_manager.py +21 -0
- lamindb/core/_mapped_collection.py +1 -1
- lamindb/core/exceptions.py +7 -0
- lamindb/core/storage/_backed_access.py +16 -8
- lamindb/core/storage/_pyarrow_dataset.py +31 -0
- lamindb/core/types.py +1 -0
- {lamindb-0.76.13.dist-info → lamindb-0.76.15.dist-info}/METADATA +9 -10
- {lamindb-0.76.13.dist-info → lamindb-0.76.15.dist-info}/RECORD +29 -28
- {lamindb-0.76.13.dist-info → lamindb-0.76.15.dist-info}/LICENSE +0 -0
- {lamindb-0.76.13.dist-info → lamindb-0.76.15.dist-info}/WHEEL +0 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from typing import TYPE_CHECKING
|
4
|
+
|
5
|
+
import pyarrow.dataset
|
6
|
+
from lamindb_setup.core.upath import LocalPathClasses
|
7
|
+
|
8
|
+
if TYPE_CHECKING:
|
9
|
+
from upath import UPath
|
10
|
+
|
11
|
+
|
12
|
+
PYARROW_SUFFIXES = (".parquet", ".csv", ".json", ".orc", ".arrow", ".feather")
|
13
|
+
|
14
|
+
|
15
|
+
def _is_pyarrow_dataset(path: UPath) -> bool:
|
16
|
+
# it is assumed here that path exists
|
17
|
+
if path.is_file():
|
18
|
+
return path.suffix in PYARROW_SUFFIXES
|
19
|
+
else:
|
20
|
+
objects = path.rglob("*")
|
21
|
+
suffixes = {object.suffix for object in objects if object.suffix != ""}
|
22
|
+
return len(suffixes) == 1 and suffixes.pop() in PYARROW_SUFFIXES
|
23
|
+
|
24
|
+
|
25
|
+
def _open_pyarrow_dataset(path: UPath) -> pyarrow.dataset.Dataset:
|
26
|
+
if isinstance(path, LocalPathClasses):
|
27
|
+
path_str, filesystem = path.as_posix(), None
|
28
|
+
else:
|
29
|
+
path_str, filesystem = path.path, path.fs
|
30
|
+
|
31
|
+
return pyarrow.dataset.dataset(path_str, filesystem=filesystem)
|
lamindb/core/types.py
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lamindb
|
3
|
-
Version: 0.76.
|
3
|
+
Version: 0.76.15
|
4
4
|
Summary: A data framework for biology.
|
5
5
|
Author-email: Lamin Labs <open-source@lamin.ai>
|
6
|
-
Requires-Python: >=3.9
|
6
|
+
Requires-Python: >=3.9,<3.13
|
7
7
|
Description-Content-Type: text/markdown
|
8
8
|
Classifier: Programming Language :: Python :: 3.9
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
|
-
|
12
|
-
Requires-Dist:
|
13
|
-
Requires-Dist:
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
12
|
+
Requires-Dist: lnschema_core==0.76.1
|
13
|
+
Requires-Dist: lamin_utils==0.13.7
|
14
|
+
Requires-Dist: lamin_cli==0.20.1
|
14
15
|
Requires-Dist: lamindb_setup
|
15
16
|
Requires-Dist: rapidfuzz
|
16
17
|
Requires-Dist: pyarrow
|
17
18
|
Requires-Dist: typing_extensions!=4.6.0
|
18
19
|
Requires-Dist: python-dateutil
|
19
20
|
Requires-Dist: anndata>=0.8.0,<=0.10.9
|
20
|
-
Requires-Dist: scipy<1.13.0rc1
|
21
21
|
Requires-Dist: fsspec
|
22
|
-
Requires-Dist: pandas
|
23
22
|
Requires-Dist: graphviz
|
24
23
|
Requires-Dist: psycopg2-binary
|
25
24
|
Requires-Dist: lamindb_setup[aws] ; extra == "aws"
|
26
|
-
Requires-Dist: bionty==0.
|
25
|
+
Requires-Dist: bionty==0.52.0 ; extra == "bionty"
|
27
26
|
Requires-Dist: line_profiler ; extra == "dev"
|
28
27
|
Requires-Dist: pre-commit ; extra == "dev"
|
29
28
|
Requires-Dist: nox ; extra == "dev"
|
@@ -35,9 +34,9 @@ Requires-Dist: mudata ; extra == "dev"
|
|
35
34
|
Requires-Dist: nbproject_test>=0.5.1 ; extra == "dev"
|
36
35
|
Requires-Dist: faker-biology ; extra == "dev"
|
37
36
|
Requires-Dist: django-schema-graph ; extra == "erdiagram"
|
38
|
-
Requires-Dist: readfcs>=1.1.
|
37
|
+
Requires-Dist: readfcs>=1.1.9 ; extra == "fcs"
|
39
38
|
Requires-Dist: lamindb_setup[gcp] ; extra == "gcp"
|
40
|
-
Requires-Dist: nbproject==0.10.
|
39
|
+
Requires-Dist: nbproject==0.10.5 ; extra == "jupyter"
|
41
40
|
Requires-Dist: jupytext ; extra == "jupyter"
|
42
41
|
Requires-Dist: nbconvert ; extra == "jupyter"
|
43
42
|
Requires-Dist: zarr>=2.16.0 ; extra == "zarr"
|
@@ -1,40 +1,40 @@
|
|
1
|
-
lamindb/__init__.py,sha256=
|
2
|
-
lamindb/_artifact.py,sha256=
|
3
|
-
lamindb/_can_validate.py,sha256=
|
4
|
-
lamindb/_collection.py,sha256=
|
5
|
-
lamindb/_curate.py,sha256=
|
6
|
-
lamindb/_feature.py,sha256=
|
7
|
-
lamindb/_feature_set.py,sha256=
|
1
|
+
lamindb/__init__.py,sha256=ZoRboX4PQc0sbVajeZ1fd4GoLN3YDj5U74zVUpcSd9I,2278
|
2
|
+
lamindb/_artifact.py,sha256=WNdKAJFu3sFgQ_Qe1JflDHiTP4EGhAIkzaHFwTthAjY,44903
|
3
|
+
lamindb/_can_validate.py,sha256=TKfkHgkPl1bwuJrQCp6pHgQbi7m2pc_zjFhZfUAUU20,19573
|
4
|
+
lamindb/_collection.py,sha256=MLOEoOgTu7rTlRD7zkm1k0YIk_gVhQDO17JbmZCptOs,14573
|
5
|
+
lamindb/_curate.py,sha256=pLsdtnnTn0qQbsUB4hrU3yuoVnVNh-BQe10EpMNZ4Ns,64083
|
6
|
+
lamindb/_feature.py,sha256=9cgrcHoyOa1jpON-9KiUfFSHcxiGECiefUAqAx4cVvU,5325
|
7
|
+
lamindb/_feature_set.py,sha256=WdXw_YGlMXCs8l0WVHOrqvvrH2hsQLqCiho8LFDYwhI,8161
|
8
8
|
lamindb/_filter.py,sha256=Pf9NHV4gm7NOC0Frtvx4W7nvwt2EowOP74DwppyXAZs,635
|
9
9
|
lamindb/_finish.py,sha256=VMAmxCUFmTKIMSCx7LEh4QAnWDeue6MeUAAzkMVEYMU,9546
|
10
|
-
lamindb/_from_values.py,sha256=
|
11
|
-
lamindb/_is_versioned.py,sha256=
|
12
|
-
lamindb/_parents.py,sha256=
|
13
|
-
lamindb/_query_manager.py,sha256=
|
14
|
-
lamindb/_query_set.py,sha256=
|
15
|
-
lamindb/_record.py,sha256=
|
10
|
+
lamindb/_from_values.py,sha256=uRtZLaMWKoANMMXm1hrADHfckRCTiK8_d02Yp07nLkw,14119
|
11
|
+
lamindb/_is_versioned.py,sha256=GWZk-usV6aB33Cl9AlrnEGE5nxUkZic7QJzOW_DrwQA,1298
|
12
|
+
lamindb/_parents.py,sha256=INhbqh6IaUjuYVUOp-6rnOGN-8kGZirNqqW9XQ1qz_M,17119
|
13
|
+
lamindb/_query_manager.py,sha256=noc05Ad-aADxckOVBVDAiErFB7gL8XTgckELvI4rGmM,3702
|
14
|
+
lamindb/_query_set.py,sha256=6vHOvB_uXzKVVIw8AAVw7EYOIAGuw3TYcUzkpNlFLdE,12973
|
15
|
+
lamindb/_record.py,sha256=isR9GMQFwUUwVSmPNABvEzcJS38TbjhD7Cc6kygPsTA,26819
|
16
16
|
lamindb/_run.py,sha256=K_5drpLn3D7y3XtZ3vtAw35rG5RCSvB4bXQZx4ESSI0,1964
|
17
|
-
lamindb/_save.py,sha256=
|
17
|
+
lamindb/_save.py,sha256=OD052Qr_hiMyAonHTktKETe_Bhnp1RY810y0rwZqpBQ,11352
|
18
18
|
lamindb/_storage.py,sha256=GBVChv-DHVMNEBJL5l_JT6B4RDhZ6NnwgzmUICphYKk,413
|
19
|
-
lamindb/_transform.py,sha256=
|
20
|
-
lamindb/_ulabel.py,sha256=
|
19
|
+
lamindb/_transform.py,sha256=HpqRCk0ZTmqxSV4nRbyvDq8fAQEE9wTj31d-CusiL6A,4720
|
20
|
+
lamindb/_ulabel.py,sha256=DQQzAPkrOg8W9I77BJ5umajR8MQcFSvXYUy53YNN2HA,1604
|
21
21
|
lamindb/_utils.py,sha256=LGdiW4k3GClLz65vKAVRkL6Tw-Gkx9DWAdez1jyA5bE,428
|
22
22
|
lamindb/_view.py,sha256=4Ln2ItTb3857PAI-70O8eJYqoTJ_NNFc7E_wds6OGns,2412
|
23
|
-
lamindb/core/__init__.py,sha256=
|
23
|
+
lamindb/core/__init__.py,sha256=y87MCP1BEC2qHNVDIOwqVteIP_2hPCdIoa9JXr0EG8U,1524
|
24
24
|
lamindb/core/_context.py,sha256=dI3z7fCMRPC3IMb7-EIaQYhacSZBA4HfLVFyoJtVL7I,22900
|
25
|
-
lamindb/core/_data.py,sha256=
|
25
|
+
lamindb/core/_data.py,sha256=BVZkxK8aloSecH25LivbwnjcG1fz7Gs2UDceO5pWd3I,20049
|
26
26
|
lamindb/core/_django.py,sha256=yeMPp1n9WrFmEjVRdavfpVqAolPLd24RseTQlvsK67w,7157
|
27
|
-
lamindb/core/_feature_manager.py,sha256=
|
28
|
-
lamindb/core/_label_manager.py,sha256=
|
29
|
-
lamindb/core/_mapped_collection.py,sha256=
|
27
|
+
lamindb/core/_feature_manager.py,sha256=q4WmzJvFLL_fAs-vNRgV2klanAoU6Wu8_g0O2dyIjVg,40027
|
28
|
+
lamindb/core/_label_manager.py,sha256=yh-r4KbtOArMUKPJL75yOxJc8HUKqsik8pExBVKyDlA,10949
|
29
|
+
lamindb/core/_mapped_collection.py,sha256=EDS0xzOdCc_iGE_Iqv5COTVHNm4jWue7Jtcd8DdXkJU,24591
|
30
30
|
lamindb/core/_settings.py,sha256=6jNadlQdimxCsKR2ZyUD0YJYzOdubTnKktki-MqEWqQ,6137
|
31
31
|
lamindb/core/_sync_git.py,sha256=lIgl6YfpH4rCFT1WILAp7zlemZfxog1d0zp3cX0KIZw,4531
|
32
32
|
lamindb/core/_track_environment.py,sha256=Ywzg_sJ7guI1dcsN7h5orce9VdYl8VGVE3OLITlHBXQ,820
|
33
|
-
lamindb/core/exceptions.py,sha256=
|
33
|
+
lamindb/core/exceptions.py,sha256=Y1XQGbv9MgNLVvoClpcwN4NugrLW3Xgy1up15wZK740,1783
|
34
34
|
lamindb/core/fields.py,sha256=47Jmh3efUr5ZscgimR_yckY-I3cNf8ScLutbwKCK3j4,162
|
35
35
|
lamindb/core/loaders.py,sha256=KMTkDa73jkRVvI9uc5Fgr0t6mq22cAxBwhSlUZKUaBg,4016
|
36
36
|
lamindb/core/schema.py,sha256=Y1tGn93B236PtnYZkpgTNFgTXBcVujPM1qh1kNG6Nbs,3441
|
37
|
-
lamindb/core/types.py,sha256=
|
37
|
+
lamindb/core/types.py,sha256=cL4cmJFA1xfxAIFOQqoa_fvVzdUM3A5blHStVwRNtk4,280
|
38
38
|
lamindb/core/versioning.py,sha256=KUpd94F5QpbDxx9eKgZwrpPyQpm9YeHVedrTEO2a_mI,4839
|
39
39
|
lamindb/core/datasets/__init__.py,sha256=zRP98oqUAaXhqWyKMiH0s_ImVIuNeziQQ2kQ_t0f-DI,1353
|
40
40
|
lamindb/core/datasets/_core.py,sha256=JGP_q-OQibDCEaI54jZ2F6fSbSW9Yg6oYOqgOCXM0v4,20414
|
@@ -42,7 +42,8 @@ lamindb/core/datasets/_fake.py,sha256=BZF9R_1iF0HDnvtZNqL2FtsjSMuqDIfuFxnw_LJYIh
|
|
42
42
|
lamindb/core/storage/__init__.py,sha256=JOIMu_7unbyhndtH1j0Q-9AvY8knSuc1IJO9sQnyBAQ,498
|
43
43
|
lamindb/core/storage/_anndata_accessor.py,sha256=2p1HjoatmZjQ1u94tjgmXgiv8MKowrQH5xInDmiLCw4,24191
|
44
44
|
lamindb/core/storage/_anndata_sizes.py,sha256=aXO3OB--tF5MChenSsigW6Q-RuE8YJJOUTVukkLrv9A,1029
|
45
|
-
lamindb/core/storage/_backed_access.py,sha256=
|
45
|
+
lamindb/core/storage/_backed_access.py,sha256=t9iS9mlZQBy1FfIS-Twt-96npYiShbPwEo2y9_3b6jY,3517
|
46
|
+
lamindb/core/storage/_pyarrow_dataset.py,sha256=wuLsEvdblqMdUdDfMtis8AWrE3igzvFWTSTbxuD1Oc8,926
|
46
47
|
lamindb/core/storage/_tiledbsoma.py,sha256=0NPLS5m1icEhzWPfXAv4U2SNiLGqGQd7FM6xCm5wYEc,7269
|
47
48
|
lamindb/core/storage/_valid_suffixes.py,sha256=vUSeQ4s01rdhD_vSd6wKmFBsgMJAKkBMnL_T9Y1znMg,501
|
48
49
|
lamindb/core/storage/_zarr.py,sha256=TODQD3p1eykoPwP-c-YRP_UDmsbMeBGMGvkBxxOMeYc,3663
|
@@ -55,7 +56,7 @@ lamindb/integrations/__init__.py,sha256=RWGMYYIzr8zvmNPyVB4m-p4gMDhxdRbjES2Ed23O
|
|
55
56
|
lamindb/integrations/_vitessce.py,sha256=uPl45_w4Uu9_BhpBDDVonC1nDOuAnB7DAnzi5w5bZAE,4032
|
56
57
|
lamindb/setup/__init__.py,sha256=OwZpZzPDv5lPPGXZP7-zK6UdO4FHvvuBh439yZvIp3A,410
|
57
58
|
lamindb/setup/core/__init__.py,sha256=SevlVrc2AZWL3uALbE5sopxBnIZPWZ1IB0NBDudiAL8,167
|
58
|
-
lamindb-0.76.
|
59
|
-
lamindb-0.76.
|
60
|
-
lamindb-0.76.
|
61
|
-
lamindb-0.76.
|
59
|
+
lamindb-0.76.15.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
60
|
+
lamindb-0.76.15.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
61
|
+
lamindb-0.76.15.dist-info/METADATA,sha256=31K0SoWfAxBpWR3x_7PLFfwpu-mnsQ8IHFqsvjdg_cw,2365
|
62
|
+
lamindb-0.76.15.dist-info/RECORD,,
|
File without changes
|
File without changes
|