lamindb 0.76.7__py3-none-any.whl → 0.76.8__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 +113 -113
- lamindb/_artifact.py +1205 -1178
- lamindb/_can_validate.py +579 -579
- lamindb/_collection.py +387 -387
- lamindb/_curate.py +1601 -1601
- lamindb/_feature.py +155 -155
- lamindb/_feature_set.py +242 -242
- lamindb/_filter.py +23 -23
- lamindb/_finish.py +256 -256
- lamindb/_from_values.py +382 -382
- lamindb/_is_versioned.py +40 -40
- lamindb/_parents.py +476 -476
- lamindb/_query_manager.py +125 -125
- lamindb/_query_set.py +362 -362
- lamindb/_record.py +649 -649
- lamindb/_run.py +57 -57
- lamindb/_save.py +308 -295
- lamindb/_storage.py +14 -14
- lamindb/_transform.py +127 -127
- lamindb/_ulabel.py +56 -56
- lamindb/_utils.py +9 -9
- lamindb/_view.py +72 -72
- lamindb/core/__init__.py +94 -94
- lamindb/core/_context.py +574 -574
- lamindb/core/_data.py +438 -438
- lamindb/core/_feature_manager.py +867 -867
- lamindb/core/_label_manager.py +253 -253
- lamindb/core/_mapped_collection.py +597 -597
- lamindb/core/_settings.py +187 -187
- lamindb/core/_sync_git.py +138 -138
- lamindb/core/_track_environment.py +27 -27
- lamindb/core/datasets/__init__.py +59 -59
- lamindb/core/datasets/_core.py +571 -571
- lamindb/core/datasets/_fake.py +36 -36
- lamindb/core/exceptions.py +90 -77
- lamindb/core/fields.py +12 -12
- lamindb/core/loaders.py +164 -164
- lamindb/core/schema.py +56 -56
- lamindb/core/storage/__init__.py +25 -25
- lamindb/core/storage/_anndata_accessor.py +740 -740
- lamindb/core/storage/_anndata_sizes.py +41 -41
- lamindb/core/storage/_backed_access.py +98 -98
- lamindb/core/storage/_tiledbsoma.py +204 -204
- lamindb/core/storage/_valid_suffixes.py +21 -21
- lamindb/core/storage/_zarr.py +110 -110
- lamindb/core/storage/objects.py +62 -62
- lamindb/core/storage/paths.py +172 -141
- lamindb/core/subsettings/__init__.py +12 -12
- lamindb/core/subsettings/_creation_settings.py +38 -38
- lamindb/core/subsettings/_transform_settings.py +21 -21
- lamindb/core/types.py +19 -19
- lamindb/core/versioning.py +158 -158
- lamindb/integrations/__init__.py +12 -12
- lamindb/integrations/_vitessce.py +107 -107
- lamindb/setup/__init__.py +14 -14
- lamindb/setup/core/__init__.py +4 -4
- {lamindb-0.76.7.dist-info → lamindb-0.76.8.dist-info}/LICENSE +201 -201
- {lamindb-0.76.7.dist-info → lamindb-0.76.8.dist-info}/METADATA +3 -3
- lamindb-0.76.8.dist-info/RECORD +60 -0
- {lamindb-0.76.7.dist-info → lamindb-0.76.8.dist-info}/WHEEL +1 -1
- lamindb-0.76.7.dist-info/RECORD +0 -60
lamindb/__init__.py
CHANGED
@@ -1,113 +1,113 @@
|
|
1
|
-
"""A data framework for biology.
|
2
|
-
|
3
|
-
Core registries.
|
4
|
-
|
5
|
-
.. autosummary::
|
6
|
-
:toctree: .
|
7
|
-
|
8
|
-
Artifact
|
9
|
-
Collection
|
10
|
-
Transform
|
11
|
-
Run
|
12
|
-
User
|
13
|
-
Storage
|
14
|
-
ULabel
|
15
|
-
Feature
|
16
|
-
FeatureSet
|
17
|
-
Param
|
18
|
-
|
19
|
-
Key functionality.
|
20
|
-
|
21
|
-
.. autosummary::
|
22
|
-
:toctree: .
|
23
|
-
|
24
|
-
context
|
25
|
-
connect
|
26
|
-
Curator
|
27
|
-
view
|
28
|
-
save
|
29
|
-
|
30
|
-
Modules and settings.
|
31
|
-
|
32
|
-
.. autosummary::
|
33
|
-
:toctree: .
|
34
|
-
|
35
|
-
integrations
|
36
|
-
settings
|
37
|
-
setup
|
38
|
-
UPath
|
39
|
-
core
|
40
|
-
|
41
|
-
"""
|
42
|
-
|
43
|
-
# denote a release candidate for 0.1.0 with 0.1rc1, 0.1a1, 0.1b1, etc.
|
44
|
-
__version__ = "0.76.
|
45
|
-
|
46
|
-
import os as _os
|
47
|
-
|
48
|
-
import lamindb_setup as _lamindb_setup
|
49
|
-
from lamindb_setup._check_setup import InstanceNotSetupError as _InstanceNotSetupError
|
50
|
-
from lamindb_setup._check_setup import _check_instance_setup
|
51
|
-
from lamindb_setup._connect_instance import connect
|
52
|
-
from lamindb_setup.core.upath import UPath
|
53
|
-
|
54
|
-
from . import setup
|
55
|
-
|
56
|
-
|
57
|
-
def __getattr__(name):
|
58
|
-
raise _InstanceNotSetupError()
|
59
|
-
|
60
|
-
|
61
|
-
if _check_instance_setup(from_lamindb=True):
|
62
|
-
del _InstanceNotSetupError
|
63
|
-
del __getattr__ # delete so that imports work out
|
64
|
-
from lnschema_core.models import (
|
65
|
-
Artifact,
|
66
|
-
Collection,
|
67
|
-
Feature,
|
68
|
-
FeatureSet,
|
69
|
-
Param,
|
70
|
-
Run,
|
71
|
-
Storage,
|
72
|
-
Transform,
|
73
|
-
ULabel,
|
74
|
-
User,
|
75
|
-
)
|
76
|
-
|
77
|
-
from . import core # isort: split
|
78
|
-
from . import (
|
79
|
-
_artifact,
|
80
|
-
_can_validate,
|
81
|
-
_collection,
|
82
|
-
_curate,
|
83
|
-
_feature,
|
84
|
-
_feature_set,
|
85
|
-
_is_versioned,
|
86
|
-
_parents,
|
87
|
-
_record,
|
88
|
-
_run,
|
89
|
-
_storage,
|
90
|
-
_transform,
|
91
|
-
_ulabel,
|
92
|
-
integrations,
|
93
|
-
)
|
94
|
-
from ._curate import Curator
|
95
|
-
from ._save import save
|
96
|
-
from ._view import view
|
97
|
-
from .core._context import context
|
98
|
-
from .core._settings import settings
|
99
|
-
|
100
|
-
# schema modules
|
101
|
-
if not _os.environ.get("LAMINDB_MULTI_INSTANCE") == "true":
|
102
|
-
from lamindb_setup._init_instance import (
|
103
|
-
reload_schema_modules as _reload_schema_modules,
|
104
|
-
)
|
105
|
-
|
106
|
-
_reload_schema_modules(_lamindb_setup.settings.instance)
|
107
|
-
|
108
|
-
track = context.track # backward compat
|
109
|
-
finish = context.finish # backward compat
|
110
|
-
Curate = Curator # backward compat
|
111
|
-
settings.__doc__ = """Global settings (:class:`~lamindb.core.Settings`)."""
|
112
|
-
context.__doc__ = """Global run context (:class:`~lamindb.core.Context`)."""
|
113
|
-
from django.db.models import Q
|
1
|
+
"""A data framework for biology.
|
2
|
+
|
3
|
+
Core registries.
|
4
|
+
|
5
|
+
.. autosummary::
|
6
|
+
:toctree: .
|
7
|
+
|
8
|
+
Artifact
|
9
|
+
Collection
|
10
|
+
Transform
|
11
|
+
Run
|
12
|
+
User
|
13
|
+
Storage
|
14
|
+
ULabel
|
15
|
+
Feature
|
16
|
+
FeatureSet
|
17
|
+
Param
|
18
|
+
|
19
|
+
Key functionality.
|
20
|
+
|
21
|
+
.. autosummary::
|
22
|
+
:toctree: .
|
23
|
+
|
24
|
+
context
|
25
|
+
connect
|
26
|
+
Curator
|
27
|
+
view
|
28
|
+
save
|
29
|
+
|
30
|
+
Modules and settings.
|
31
|
+
|
32
|
+
.. autosummary::
|
33
|
+
:toctree: .
|
34
|
+
|
35
|
+
integrations
|
36
|
+
settings
|
37
|
+
setup
|
38
|
+
UPath
|
39
|
+
core
|
40
|
+
|
41
|
+
"""
|
42
|
+
|
43
|
+
# denote a release candidate for 0.1.0 with 0.1rc1, 0.1a1, 0.1b1, etc.
|
44
|
+
__version__ = "0.76.8"
|
45
|
+
|
46
|
+
import os as _os
|
47
|
+
|
48
|
+
import lamindb_setup as _lamindb_setup
|
49
|
+
from lamindb_setup._check_setup import InstanceNotSetupError as _InstanceNotSetupError
|
50
|
+
from lamindb_setup._check_setup import _check_instance_setup
|
51
|
+
from lamindb_setup._connect_instance import connect
|
52
|
+
from lamindb_setup.core.upath import UPath
|
53
|
+
|
54
|
+
from . import setup
|
55
|
+
|
56
|
+
|
57
|
+
def __getattr__(name):
|
58
|
+
raise _InstanceNotSetupError()
|
59
|
+
|
60
|
+
|
61
|
+
if _check_instance_setup(from_lamindb=True):
|
62
|
+
del _InstanceNotSetupError
|
63
|
+
del __getattr__ # delete so that imports work out
|
64
|
+
from lnschema_core.models import (
|
65
|
+
Artifact,
|
66
|
+
Collection,
|
67
|
+
Feature,
|
68
|
+
FeatureSet,
|
69
|
+
Param,
|
70
|
+
Run,
|
71
|
+
Storage,
|
72
|
+
Transform,
|
73
|
+
ULabel,
|
74
|
+
User,
|
75
|
+
)
|
76
|
+
|
77
|
+
from . import core # isort: split
|
78
|
+
from . import (
|
79
|
+
_artifact,
|
80
|
+
_can_validate,
|
81
|
+
_collection,
|
82
|
+
_curate,
|
83
|
+
_feature,
|
84
|
+
_feature_set,
|
85
|
+
_is_versioned,
|
86
|
+
_parents,
|
87
|
+
_record,
|
88
|
+
_run,
|
89
|
+
_storage,
|
90
|
+
_transform,
|
91
|
+
_ulabel,
|
92
|
+
integrations,
|
93
|
+
)
|
94
|
+
from ._curate import Curator
|
95
|
+
from ._save import save
|
96
|
+
from ._view import view
|
97
|
+
from .core._context import context
|
98
|
+
from .core._settings import settings
|
99
|
+
|
100
|
+
# schema modules
|
101
|
+
if not _os.environ.get("LAMINDB_MULTI_INSTANCE") == "true":
|
102
|
+
from lamindb_setup._init_instance import (
|
103
|
+
reload_schema_modules as _reload_schema_modules,
|
104
|
+
)
|
105
|
+
|
106
|
+
_reload_schema_modules(_lamindb_setup.settings.instance)
|
107
|
+
|
108
|
+
track = context.track # backward compat
|
109
|
+
finish = context.finish # backward compat
|
110
|
+
Curate = Curator # backward compat
|
111
|
+
settings.__doc__ = """Global settings (:class:`~lamindb.core.Settings`)."""
|
112
|
+
context.__doc__ = """Global run context (:class:`~lamindb.core.Context`)."""
|
113
|
+
from django.db.models import Q
|