lamindb_setup 1.10.1__tar.gz → 1.10.2__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-1.10.1 → lamindb_setup-1.10.2}/PKG-INFO +1 -1
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/__init__.py +1 -1
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_connect_instance.py +11 -8
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/.github/workflows/build.yml +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/.github/workflows/doc-changes.yml +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/.gitignore +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/.pre-commit-config.yaml +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/LICENSE +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/README.md +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/changelog.md +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/01-init-local-instance.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/02-connect-local-instance.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/03-add-managed-storage.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/04-test-bionty.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/05-init-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/06-connect-hosted-instance.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/07-keep-artifacts-local.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/08-test-multi-session.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/09-test-migrate.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/test_notebooks.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-cache-management.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-cloud-sync.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-connect-anonymously.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-empty-init.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-import-schema.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-init-load-local-anonymously.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-insufficient-user-info.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-invalid-schema.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-sqlite-lock.ipynb +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test_notebooks2.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/index.md +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/notebooks.md +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/reference.md +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_cache.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_check.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_check_setup.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_delete.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_disconnect.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_django.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_entry_points.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_exportdb.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_importdb.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_init_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_migrate.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_register_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_schema.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_schema_metadata.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_set_managed_storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_setup_user.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/_silence_loggers.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/__init__.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_aws_options.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_aws_storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_deprecated.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_docs.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_hub_client.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_hub_core.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_hub_crud.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_hub_utils.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_private_django_api.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_load.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_save.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_store.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_settings_user.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/_setup_bionty_sources.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/cloud_sqlite_locker.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/django.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/exceptions.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/hashing.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/types.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/core/upath.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/errors.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/py.typed +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/lamindb_setup/types.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/noxfile.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/pyproject.toml +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/scripts/script-init-pass-user-no-writes.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/scripts/script-to-fail-managed-storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_connect_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_delete_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_edge_request.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_fail_managed_storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_init_instance.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_init_pass_user_no_writes.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_login.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_set_storage.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-local/conftest.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-local/scripts/script-connect-fine-grained-access.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-local/test_all.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-local/test_update_schema_in_hub.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/conftest.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_aws_options_manager.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_django.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_global_settings.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_migrate.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_switch_and_fallback_env.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-prod/test_upath.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_entry_point.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_hashing.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_storage_access.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_storage_basis.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_storage_settings.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_storage_stats.py +0 -0
- {lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/storage/test_to_url.py +0 -0
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import importlib
|
|
4
4
|
import os
|
|
5
5
|
import sys
|
|
6
|
+
import types
|
|
6
7
|
from typing import TYPE_CHECKING, Any
|
|
7
8
|
from uuid import UUID
|
|
8
9
|
|
|
@@ -184,24 +185,26 @@ def _connect_instance(
|
|
|
184
185
|
def reset_django_module_variables():
|
|
185
186
|
# This function updates all module-level references to Django classes
|
|
186
187
|
# But it will fail to update function level references
|
|
188
|
+
# This is not a problem unless for the function that calls ln.connect() itself
|
|
187
189
|
# So, if a user has
|
|
190
|
+
#
|
|
188
191
|
# def my_function():
|
|
189
192
|
# import lamindb as ln
|
|
190
|
-
# ...
|
|
193
|
+
# ln.connect(...)
|
|
191
194
|
#
|
|
192
|
-
# Then it will **not** work and the `ln` variable
|
|
195
|
+
# Then it will **not** work and the `ln` variable becomes stale and hold a reference
|
|
193
196
|
# to the old classes
|
|
194
|
-
#
|
|
195
|
-
|
|
197
|
+
# Other functions that dynamically import are no problem because the variables
|
|
198
|
+
# are automatically refreshed when the function runs the next time after ln.connect() was called
|
|
196
199
|
logger.important_hint("resetting django module variables")
|
|
197
200
|
|
|
198
|
-
import
|
|
199
|
-
|
|
201
|
+
# django.apps needs to be a local import to refresh variables
|
|
200
202
|
from django.apps import apps
|
|
201
203
|
|
|
202
204
|
app_names = {app.name for app in apps.get_app_configs()}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
# always copy before iterations over sys.modules
|
|
206
|
+
# see https://docs.python.org/3/library/sys.html#sys.modules
|
|
207
|
+
for name, module in sys.modules.copy().items():
|
|
205
208
|
if (
|
|
206
209
|
module is not None
|
|
207
210
|
and (not name.startswith("__") or name == "__main__")
|
|
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-1.10.1 → lamindb_setup-1.10.2}/docs/hub-cloud/02-connect-local-instance.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/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
|
|
File without changes
|
{lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/docs/hub-prod/test-init-load-local-anonymously.ipynb
RENAMED
|
File without changes
|
{lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/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
|
|
File without changes
|
|
File without changes
|
{lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/tests/hub-cloud/test_init_pass_user_no_writes.py
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
|
{lamindb_setup-1.10.1 → lamindb_setup-1.10.2}/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
|
|
File without changes
|
|
File without changes
|