lamindb_setup 0.74.0__tar.gz → 0.74.1__tar.gz
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-0.74.0 → lamindb_setup-0.74.1}/PKG-INFO +2 -1
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/__init__.py +1 -1
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_connect_instance.py +0 -6
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_schema_metadata.py +4 -4
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/pyproject.toml +1 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-local/test_update_schema_in_hub.py +6 -6
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/.github/workflows/build.yml +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/.github/workflows/doc-changes.yml +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/.gitignore +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/.pre-commit-config.yaml +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/LICENSE +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/README.md +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/changelog.md +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/01-init-local-instance.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/02-connect-local-instance.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/03-add-managed-storage.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/04-test-bionty.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/05-init-hosted-instance.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/06-connect-hosted-instance.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/07-keep-artifacts-local.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/test-multi-session.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/test_notebooks.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-cache-management.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-cloud-sync.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-connect-anonymously.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-empty-init.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-import-schema.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-insufficient-user-info.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-invalid-schema.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-sqlite-lock.ipynb +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test_notebooks2.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/index.md +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/notebooks.md +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/reference.md +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_cache.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_check.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_check_setup.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_close.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_delete.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_django.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_exportdb.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_importdb.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_init_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_migrate.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_register_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_schema.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_set_managed_storage.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_setup_user.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/_silence_loggers.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/__init__.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_aws_credentials.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_aws_storage.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_deprecated.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_docs.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_hub_client.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_hub_core.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_hub_crud.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_hub_utils.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_private_django_api.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_load.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_save.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_storage.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_store.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_settings_user.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/_setup_bionty_sources.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/cloud_sqlite_locker.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/django.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/exceptions.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/hashing.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/types.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/lamindb_setup/core/upath.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/noxfile.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_connect_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_delete_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_init_instance.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_login.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_migrate.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-cloud/test_set_storage.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-local/conftest.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-local/test_all.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/conftest.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/test_django.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/test_global_settings.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/test_switch_and_fallback_env.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/test_upath.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/storage/test_hashing.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/storage/test_storage_access.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/storage/test_storage_basis.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/storage/test_storage_stats.py +0 -0
- {lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/storage/test_to_url.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lamindb_setup
|
|
3
|
-
Version: 0.74.
|
|
3
|
+
Version: 0.74.1
|
|
4
4
|
Summary: Setup & configure LaminDB.
|
|
5
5
|
Author-email: Lamin Labs <laminlabs@gmail.com>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -14,6 +14,7 @@ Requires-Dist: requests
|
|
|
14
14
|
Requires-Dist: universal_pathlib==0.2.2
|
|
15
15
|
Requires-Dist: botocore<2.0.0
|
|
16
16
|
Requires-Dist: supabase==2.2.1
|
|
17
|
+
Requires-Dist: psutil
|
|
17
18
|
Requires-Dist: urllib3<2 ; extra == "aws"
|
|
18
19
|
Requires-Dist: aiobotocore[boto3]>=2.5.4,<3.0.0 ; extra == "aws"
|
|
19
20
|
Requires-Dist: s3fs>=2023.12.2,<=2024.3.1 ; extra == "aws"
|
|
@@ -270,12 +270,6 @@ def load(
|
|
|
270
270
|
This is exactly the same as ``ln.connect()`` except for that
|
|
271
271
|
``ln.connect()`` doesn't change the state of ``auto-connect``.
|
|
272
272
|
"""
|
|
273
|
-
# enable the message in the next release
|
|
274
|
-
logger.warning(
|
|
275
|
-
"`lamin connect` replaces `lamin load`, which will be removed in a future"
|
|
276
|
-
" version\nif you still want to auto-connect to an instance upon lamindb"
|
|
277
|
-
" import, call: `lamin load` on the CLI"
|
|
278
|
-
)
|
|
279
273
|
result = connect(slug, db=db, storage=storage)
|
|
280
274
|
settings.auto_connect = True
|
|
281
275
|
return result
|
|
@@ -113,7 +113,7 @@ class Through(BaseModel):
|
|
|
113
113
|
|
|
114
114
|
class FieldMetadata(BaseModel):
|
|
115
115
|
type: Type
|
|
116
|
-
|
|
116
|
+
column_name: str | None = None
|
|
117
117
|
through: Through | None = None
|
|
118
118
|
field_name: str
|
|
119
119
|
model_name: str
|
|
@@ -249,7 +249,7 @@ class _ModelHandler:
|
|
|
249
249
|
field_name=field_name,
|
|
250
250
|
type=internal_type,
|
|
251
251
|
is_link_table=issubclass(field.model, LinkORM),
|
|
252
|
-
|
|
252
|
+
column_name=column,
|
|
253
253
|
relation_type=relation_type,
|
|
254
254
|
related_schema_name=related_schema_name,
|
|
255
255
|
related_model_name=related_model_name,
|
|
@@ -355,8 +355,8 @@ class _SchemaHandler:
|
|
|
355
355
|
for model in self._get_schema_module(
|
|
356
356
|
module_name
|
|
357
357
|
).models.__dict__.values()
|
|
358
|
-
if model.__class__.__name__ == "
|
|
359
|
-
and model.__name__ not in ["
|
|
358
|
+
if model.__class__.__name__ == "RecordMeta"
|
|
359
|
+
and model.__name__ not in ["Record", "ORM"]
|
|
360
360
|
and not model._meta.abstract
|
|
361
361
|
and model.__get_schema_name__() == module_name
|
|
362
362
|
}
|
|
@@ -43,7 +43,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
43
43
|
|
|
44
44
|
assert schema["schema_json"]["core"]["artifact"]["fields"]["id"] == {
|
|
45
45
|
"type": "AutoField",
|
|
46
|
-
"
|
|
46
|
+
"column_name": "id",
|
|
47
47
|
"through": None,
|
|
48
48
|
"field_name": "id",
|
|
49
49
|
"model_name": "artifact",
|
|
@@ -57,7 +57,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
57
57
|
|
|
58
58
|
assert schema["schema_json"]["core"]["artifact"]["fields"]["created_by"] == {
|
|
59
59
|
"type": "ForeignKey",
|
|
60
|
-
"
|
|
60
|
+
"column_name": "created_by_id",
|
|
61
61
|
"through": {
|
|
62
62
|
"left_key": "created_by_id",
|
|
63
63
|
"right_key": "id",
|
|
@@ -75,7 +75,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
75
75
|
|
|
76
76
|
assert schema["schema_json"]["bionty"]["gene"]["fields"]["pathways"] == {
|
|
77
77
|
"type": "ManyToManyField",
|
|
78
|
-
"
|
|
78
|
+
"column_name": None,
|
|
79
79
|
"through": {
|
|
80
80
|
"left_key": "gene_id",
|
|
81
81
|
"right_key": "pathway_id",
|
|
@@ -93,7 +93,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
93
93
|
|
|
94
94
|
assert schema["schema_json"]["wetlab"]["well"]["fields"]["artifacts"] == {
|
|
95
95
|
"type": "ManyToManyField",
|
|
96
|
-
"
|
|
96
|
+
"column_name": None,
|
|
97
97
|
"through": {
|
|
98
98
|
"left_key": "well_id",
|
|
99
99
|
"right_key": "artifact_id",
|
|
@@ -111,7 +111,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
111
111
|
|
|
112
112
|
assert schema["schema_json"]["core"]["transform"]["fields"]["parents"] == {
|
|
113
113
|
"type": "ManyToManyField",
|
|
114
|
-
"
|
|
114
|
+
"column_name": None,
|
|
115
115
|
"through": {
|
|
116
116
|
"left_key": "from_transform_id",
|
|
117
117
|
"right_key": "to_transform_id",
|
|
@@ -129,7 +129,7 @@ def test_update_schema_in_hub(setup_instance):
|
|
|
129
129
|
|
|
130
130
|
assert schema["schema_json"]["core"]["transform"]["fields"]["children"] == {
|
|
131
131
|
"type": "ManyToManyField",
|
|
132
|
-
"
|
|
132
|
+
"column_name": None,
|
|
133
133
|
"through": {
|
|
134
134
|
"left_key": "to_transform_id",
|
|
135
135
|
"right_key": "from_transform_id",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/02-connect-local-instance.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-cloud/06-connect-hosted-instance.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/docs/hub-prod/test-insufficient-user-info.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-0.74.0 → lamindb_setup-0.74.1}/tests/hub-prod/test_switch_and_fallback_env.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|