lamin_cli 0.16.2__tar.gz → 0.16.3__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.
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/PKG-INFO +1 -1
- lamin_cli-0.16.3/lamin_cli/__init__.py +3 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/__main__.py +14 -14
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_cache.py +1 -1
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_save.py +1 -1
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_cli.py +0 -6
- lamin_cli-0.16.2/lamin_cli/__init__.py +0 -3
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.github/workflows/doc-changes.yml +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.gitignore +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.pre-commit-config.yaml +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/README.md +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_get.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_migration.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/pyproject.toml +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/conftest.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/not-initialized.ipynb +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/with-title-and-initialized-consecutive.ipynb +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/with-title-and-initialized-non-consecutive.ipynb +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/merely-import-lamindb.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/run-track-and-finish-sync-git.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/run-track-and-finish.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_get.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_migrate.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_multi_process.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_files.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_notebooks.py +0 -0
- {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_scripts.py +0 -0
|
@@ -52,7 +52,7 @@ else:
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "Configuration commands",
|
|
55
|
-
"commands": ["
|
|
55
|
+
"commands": ["cache", "set"],
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"name": "Schema commands",
|
|
@@ -72,6 +72,7 @@ else:
|
|
|
72
72
|
@wraps(f)
|
|
73
73
|
def wrapper(*args, **kwargs):
|
|
74
74
|
return f(*args, **kwargs)
|
|
75
|
+
|
|
75
76
|
return wrapper
|
|
76
77
|
|
|
77
78
|
|
|
@@ -97,15 +98,22 @@ def main():
|
|
|
97
98
|
@main.command()
|
|
98
99
|
@click.argument("user", type=str)
|
|
99
100
|
@click.option("--key", type=str, default=None, help="API key")
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
def login(user: str, key: Optional[str]):
|
|
102
|
+
"""Log into LaminHub.
|
|
103
|
+
|
|
104
|
+
Upon logging in the first time, you need to pass your API key via
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
lamin login myemail@acme.com --key YOUR_API_KEY
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
You'll find your API key in the top right corner under "Settings".
|
|
103
111
|
|
|
104
|
-
|
|
112
|
+
After this, you can either use `lamin login myhandle` or `lamin login myemail@acme.com`
|
|
105
113
|
"""
|
|
106
114
|
from lamindb_setup._setup_user import login
|
|
107
115
|
|
|
108
|
-
return login(user, key=key
|
|
116
|
+
return login(user, key=key)
|
|
109
117
|
|
|
110
118
|
|
|
111
119
|
# fmt: off
|
|
@@ -202,14 +210,6 @@ def save(filepath: str, key: str, description: str):
|
|
|
202
210
|
sys.exit(1)
|
|
203
211
|
|
|
204
212
|
|
|
205
|
-
@main.command()
|
|
206
|
-
def register():
|
|
207
|
-
"""Register an instance on the hub."""
|
|
208
|
-
from lamindb_setup._register_instance import register as register_
|
|
209
|
-
|
|
210
|
-
return register_()
|
|
211
|
-
|
|
212
|
-
|
|
213
213
|
main.add_command(cache)
|
|
214
214
|
|
|
215
215
|
|
|
@@ -96,7 +96,7 @@ def save_from_filepath_cli(
|
|
|
96
96
|
# the corresponding transform family in the transform table
|
|
97
97
|
transform_family = ln.Transform.filter(uid__startswith=stem_uid).all()
|
|
98
98
|
# the specific version
|
|
99
|
-
transform = transform_family.
|
|
99
|
+
transform = transform_family.get(version=transform_version)
|
|
100
100
|
# latest run of this transform by user
|
|
101
101
|
run = ln.Run.filter(transform=transform).order_by("-started_at").first()
|
|
102
102
|
if run.created_by.id != ln_setup.settings.user.id:
|
|
@@ -14,9 +14,3 @@ def test_login():
|
|
|
14
14
|
"lamin login testuser1 --key cEvcwMJFX4OwbsYVaMt2Os6GxxGgDUlBGILs2RyS"
|
|
15
15
|
)
|
|
16
16
|
assert exit_status == 0
|
|
17
|
-
|
|
18
|
-
# backward compat
|
|
19
|
-
exit_status = os.system(
|
|
20
|
-
"lamin login testuser1 --password cEvcwMJFX4OwbsYVaMt2Os6GxxGgDUlBGILs2RyS"
|
|
21
|
-
)
|
|
22
|
-
assert exit_status == 0
|
|
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
|
{lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/with-title-and-initialized-consecutive.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
|