lamindb_setup 0.77.2__tar.gz → 0.77.4__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.
Files changed (97) hide show
  1. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/.github/workflows/doc-changes.yml +23 -23
  2. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/.gitignore +111 -111
  3. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/.pre-commit-config.yaml +46 -46
  4. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/PKG-INFO +1 -1
  5. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/README.md +6 -6
  6. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/changelog.md +654 -654
  7. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/01-init-local-instance.ipynb +117 -117
  8. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/02-connect-local-instance.ipynb +179 -179
  9. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/03-add-managed-storage.ipynb +452 -452
  10. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/07-keep-artifacts-local.ipynb +220 -220
  11. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/08-test-multi-session.ipynb +159 -159
  12. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/test_notebooks.py +8 -8
  13. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-cache-management.ipynb +305 -305
  14. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-cloud-sync.ipynb +611 -536
  15. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-connect-anonymously.ipynb +87 -87
  16. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-empty-init.ipynb +129 -129
  17. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-import-schema.ipynb +133 -133
  18. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-init-load-local-anonymously.ipynb +140 -140
  19. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-insufficient-user-info.ipynb +202 -202
  20. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-invalid-schema.ipynb +52 -52
  21. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test-sqlite-lock.ipynb +280 -280
  22. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-prod/test_notebooks2.py +8 -8
  23. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/index.md +12 -12
  24. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/notebooks.md +25 -25
  25. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/__init__.py +1 -1
  26. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_cache.py +34 -34
  27. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_check.py +7 -7
  28. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_check_setup.py +79 -79
  29. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_close.py +35 -35
  30. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_connect_instance.py +444 -444
  31. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_delete.py +9 -5
  32. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_django.py +41 -41
  33. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_entry_points.py +22 -22
  34. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_exportdb.py +68 -68
  35. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_importdb.py +50 -50
  36. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_init_instance.py +374 -374
  37. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_migrate.py +239 -239
  38. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_register_instance.py +36 -36
  39. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_schema.py +27 -27
  40. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_schema_metadata.py +411 -411
  41. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_set_managed_storage.py +55 -55
  42. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_setup_user.py +137 -137
  43. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/_silence_loggers.py +44 -44
  44. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/__init__.py +21 -21
  45. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_aws_credentials.py +151 -151
  46. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_aws_storage.py +48 -48
  47. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_deprecated.py +55 -55
  48. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_docs.py +14 -14
  49. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_hub_core.py +590 -590
  50. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_hub_crud.py +211 -211
  51. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_hub_utils.py +109 -109
  52. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_private_django_api.py +88 -88
  53. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings.py +138 -138
  54. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_instance.py +467 -467
  55. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_load.py +105 -105
  56. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_save.py +81 -81
  57. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_storage.py +405 -393
  58. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_store.py +75 -75
  59. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_settings_user.py +53 -53
  60. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_setup_bionty_sources.py +101 -101
  61. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/cloud_sqlite_locker.py +232 -232
  62. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/django.py +114 -114
  63. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/exceptions.py +12 -12
  64. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/hashing.py +114 -114
  65. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/types.py +19 -19
  66. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/upath.py +779 -779
  67. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/noxfile.py +110 -110
  68. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/pyproject.toml +147 -147
  69. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/scripts/script-to-fail-managed-storage.py +26 -26
  70. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_connect_instance.py +140 -140
  71. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_delete_instance.py +10 -10
  72. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_fail_managed_storage.py +12 -12
  73. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_init_instance.py +185 -185
  74. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_login.py +82 -82
  75. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_migrate.py +22 -22
  76. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-cloud/test_set_storage.py +15 -15
  77. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-local/conftest.py +31 -31
  78. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-local/test_all.py +380 -380
  79. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-prod/test_django.py +9 -9
  80. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-prod/test_global_settings.py +55 -55
  81. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-prod/test_switch_and_fallback_env.py +50 -50
  82. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-prod/test_upath.py +44 -44
  83. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_entry_point.py +76 -76
  84. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_hashing.py +54 -54
  85. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_storage_access.py +50 -50
  86. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_storage_basis.py +26 -26
  87. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_storage_stats.py +46 -46
  88. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/storage/test_to_url.py +31 -31
  89. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/.github/workflows/build.yml +0 -0
  90. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/LICENSE +0 -0
  91. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/04-test-bionty.ipynb +0 -0
  92. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/05-init-hosted-instance.ipynb +0 -0
  93. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/hub-cloud/06-connect-hosted-instance.ipynb +0 -0
  94. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/docs/reference.md +0 -0
  95. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/lamindb_setup/core/_hub_client.py +0 -0
  96. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-local/test_update_schema_in_hub.py +0 -0
  97. {lamindb_setup-0.77.2 → lamindb_setup-0.77.4}/tests/hub-prod/conftest.py +0 -0
@@ -1,23 +1,23 @@
1
- name: doc-changes
2
-
3
- on:
4
- pull_request_target:
5
- branches:
6
- - main
7
- types:
8
- - closed
9
-
10
- jobs:
11
- latest-changes:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-python@v5
16
- with:
17
- python-version: "3.11"
18
- - run: pip install "laminci[doc-changes]@git+https://x-access-token:${{ secrets.LAMIN_BUILD_DOCS }}@github.com/laminlabs/laminci"
19
- - run: laminci doc-changes
20
- env:
21
- repo_token: ${{ secrets.GITHUB_TOKEN }}
22
- docs_token: ${{ secrets.LAMIN_BUILD_DOCS }}
23
- changelog_file: lamin-docs/docs/changelog/soon/lamindb.md
1
+ name: doc-changes
2
+
3
+ on:
4
+ pull_request_target:
5
+ branches:
6
+ - main
7
+ types:
8
+ - closed
9
+
10
+ jobs:
11
+ latest-changes:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.11"
18
+ - run: pip install "laminci[doc-changes]@git+https://x-access-token:${{ secrets.LAMIN_BUILD_DOCS }}@github.com/laminlabs/laminci"
19
+ - run: laminci doc-changes
20
+ env:
21
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
22
+ docs_token: ${{ secrets.LAMIN_BUILD_DOCS }}
23
+ changelog_file: lamin-docs/docs/changelog/soon/lamindb.md
@@ -1,111 +1,111 @@
1
- # macOS
2
- .DS_Store
3
- .AppleDouble
4
- .LSOverride
5
- anon_key
6
- supabase/
7
- # Byte-compiled / optimized / DLL files
8
- __pycache__/
9
- *.py[cod]
10
- *$py.class
11
- laminhub-rest/
12
-
13
- # C extensions
14
- *.so
15
-
16
- # Distribution / packaging
17
- .Python
18
- env/
19
- build/
20
- develop-eggs/
21
- dist/
22
- downloads/
23
- eggs/
24
- .eggs/
25
- lib/
26
- lib64/
27
- parts/
28
- sdist/
29
- var/
30
- wheels/
31
- *.egg-info/
32
- .installed.cfg
33
- *.egg
34
-
35
- # PyInstaller
36
- # Usually these files are written by a python script from a template
37
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
38
- *.manifest
39
- *.spec
40
-
41
- # Installer logs
42
- pip-log.txt
43
- pip-delete-this-directory.txt
44
-
45
- # Unit test / coverage reports
46
- htmlcov/
47
- .tox/
48
- .coverage
49
- .coverage.*
50
- .cache
51
- nosetests.xml
52
- coverage.xml
53
- *.cover
54
- .hypothesis/
55
- .pytest_cache/
56
-
57
- # Translations
58
- *.mo
59
- *.pot
60
-
61
- # Django stuff:
62
- *.log
63
- local_settings.py
64
-
65
- # Flask stuff:
66
- instance/
67
- .webassets-cache
68
-
69
- # Scrapy stuff:
70
- .scrapy
71
-
72
- # Sphinx documentation
73
- docs/_build/
74
-
75
- # PyBuilder
76
- target/
77
-
78
- # Jupyter Notebook
79
- .ipynb_checkpoints
80
-
81
- # pyenv
82
- .python-version
83
-
84
- # celery beat schedule file
85
- celerybeat-schedule
86
-
87
- # SageMath parsed files
88
- *.sage.py
89
-
90
- # dotenv
91
- .env
92
-
93
- # virtualenv
94
- .venv
95
- venv/
96
- ENV/
97
-
98
- # mypy
99
- .mypy_cache/
100
-
101
- # IDE settings
102
- .vscode/
103
- .idea/
104
-
105
- # Lamin
106
- _build
107
- lamin_sphinx
108
- docs/conf.py
109
- _docs_tmp*
110
- *.lndb
111
- _is_initialized
1
+ # macOS
2
+ .DS_Store
3
+ .AppleDouble
4
+ .LSOverride
5
+ anon_key
6
+ supabase/
7
+ # Byte-compiled / optimized / DLL files
8
+ __pycache__/
9
+ *.py[cod]
10
+ *$py.class
11
+ laminhub-rest/
12
+
13
+ # C extensions
14
+ *.so
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ env/
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+
35
+ # PyInstaller
36
+ # Usually these files are written by a python script from a template
37
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
38
+ *.manifest
39
+ *.spec
40
+
41
+ # Installer logs
42
+ pip-log.txt
43
+ pip-delete-this-directory.txt
44
+
45
+ # Unit test / coverage reports
46
+ htmlcov/
47
+ .tox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ .hypothesis/
55
+ .pytest_cache/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # pyenv
82
+ .python-version
83
+
84
+ # celery beat schedule file
85
+ celerybeat-schedule
86
+
87
+ # SageMath parsed files
88
+ *.sage.py
89
+
90
+ # dotenv
91
+ .env
92
+
93
+ # virtualenv
94
+ .venv
95
+ venv/
96
+ ENV/
97
+
98
+ # mypy
99
+ .mypy_cache/
100
+
101
+ # IDE settings
102
+ .vscode/
103
+ .idea/
104
+
105
+ # Lamin
106
+ _build
107
+ lamin_sphinx
108
+ docs/conf.py
109
+ _docs_tmp*
110
+ *.lndb
111
+ _is_initialized
@@ -1,46 +1,46 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/mirrors-prettier
3
- rev: v4.0.0-alpha.4
4
- hooks:
5
- - id: prettier
6
- exclude: |
7
- (?x)(
8
- docs/changelog.md
9
- )
10
- - repo: https://github.com/kynan/nbstripout
11
- rev: 0.6.1
12
- hooks:
13
- - id: nbstripout
14
- exclude: |
15
- (?x)(
16
- docs/examples/|
17
- docs/notes/
18
- )
19
- - repo: https://github.com/astral-sh/ruff-pre-commit
20
- rev: v0.5.5
21
- hooks:
22
- - id: ruff
23
- args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
24
- - id: ruff-format
25
- - repo: https://github.com/pre-commit/pre-commit-hooks
26
- rev: v4.5.0
27
- hooks:
28
- - id: detect-private-key
29
- - id: check-ast
30
- - id: end-of-file-fixer
31
- exclude: |
32
- (?x)(
33
- .github/workflows/latest-changes.jinja2
34
- )
35
- - id: mixed-line-ending
36
- args: [--fix=lf]
37
- - id: trailing-whitespace
38
- - id: check-case-conflict
39
- - repo: https://github.com/pre-commit/mirrors-mypy
40
- rev: v1.7.1
41
- hooks:
42
- - id: mypy
43
- exclude: |
44
- (?x)(
45
- tests/hub-local/conftest.py
46
- )
1
+ repos:
2
+ - repo: https://github.com/pre-commit/mirrors-prettier
3
+ rev: v4.0.0-alpha.4
4
+ hooks:
5
+ - id: prettier
6
+ exclude: |
7
+ (?x)(
8
+ docs/changelog.md
9
+ )
10
+ - repo: https://github.com/kynan/nbstripout
11
+ rev: 0.6.1
12
+ hooks:
13
+ - id: nbstripout
14
+ exclude: |
15
+ (?x)(
16
+ docs/examples/|
17
+ docs/notes/
18
+ )
19
+ - repo: https://github.com/astral-sh/ruff-pre-commit
20
+ rev: v0.5.5
21
+ hooks:
22
+ - id: ruff
23
+ args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
24
+ - id: ruff-format
25
+ - repo: https://github.com/pre-commit/pre-commit-hooks
26
+ rev: v4.5.0
27
+ hooks:
28
+ - id: detect-private-key
29
+ - id: check-ast
30
+ - id: end-of-file-fixer
31
+ exclude: |
32
+ (?x)(
33
+ .github/workflows/latest-changes.jinja2
34
+ )
35
+ - id: mixed-line-ending
36
+ args: [--fix=lf]
37
+ - id: trailing-whitespace
38
+ - id: check-case-conflict
39
+ - repo: https://github.com/pre-commit/mirrors-mypy
40
+ rev: v1.7.1
41
+ hooks:
42
+ - id: mypy
43
+ exclude: |
44
+ (?x)(
45
+ tests/hub-local/conftest.py
46
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamindb_setup
3
- Version: 0.77.2
3
+ Version: 0.77.4
4
4
  Summary: Setup & configure LaminDB.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
- [![codecov](https://codecov.io/gh/laminlabs/lamindb-setup/branch/main/graph/badge.svg)](https://codecov.io/gh/laminlabs/lamindb-setup)
2
-
3
- # lamindb-setup: Setup LaminDB
4
-
5
- - User [docs](https://lamin.ai/docs)
6
- - Developer [docs](https://lamindb-setup-htry.netlify.app/)
1
+ [![codecov](https://codecov.io/gh/laminlabs/lamindb-setup/branch/main/graph/badge.svg)](https://codecov.io/gh/laminlabs/lamindb-setup)
2
+
3
+ # lamindb-setup: Setup LaminDB
4
+
5
+ - User [docs](https://lamin.ai/docs)
6
+ - Developer [docs](https://lamindb-setup-htry.netlify.app/)