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.
Files changed (27) hide show
  1. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/PKG-INFO +1 -1
  2. lamin_cli-0.16.3/lamin_cli/__init__.py +3 -0
  3. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/__main__.py +14 -14
  4. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_cache.py +1 -1
  5. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_save.py +1 -1
  6. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_cli.py +0 -6
  7. lamin_cli-0.16.2/lamin_cli/__init__.py +0 -3
  8. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.github/workflows/doc-changes.yml +0 -0
  9. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.gitignore +0 -0
  10. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/.pre-commit-config.yaml +0 -0
  11. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/README.md +0 -0
  12. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_get.py +0 -0
  13. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/lamin_cli/_migration.py +0 -0
  14. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/pyproject.toml +0 -0
  15. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/conftest.py +0 -0
  16. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/not-initialized.ipynb +0 -0
  17. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/with-title-and-initialized-consecutive.ipynb +0 -0
  18. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/notebooks/with-title-and-initialized-non-consecutive.ipynb +0 -0
  19. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/merely-import-lamindb.py +0 -0
  20. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/run-track-and-finish-sync-git.py +0 -0
  21. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/scripts/run-track-and-finish.py +0 -0
  22. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_get.py +0 -0
  23. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_migrate.py +0 -0
  24. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_multi_process.py +0 -0
  25. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_files.py +0 -0
  26. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_notebooks.py +0 -0
  27. {lamin_cli-0.16.2 → lamin_cli-0.16.3}/tests/test_save_scripts.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamin_cli
3
- Version: 0.16.2
3
+ Version: 0.16.3
4
4
  Summary: Lamin CLI.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,3 @@
1
+ """Lamin CLI."""
2
+
3
+ __version__ = "0.16.3"
@@ -52,7 +52,7 @@ else:
52
52
  },
53
53
  {
54
54
  "name": "Configuration commands",
55
- "commands": ["register", "cache", "set"],
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
- @click.option("--password", type=str, default=None, help="legacy password")
101
- def login(user: str, key: Optional[str], password: Optional[str]):
102
- """Login using a user email address or handle.
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
- Examples: `lamin login marge` or `lamin login marge@acme.com`
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, password=password)
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
 
@@ -37,4 +37,4 @@ def get_cache():
37
37
  """Get the cache directory."""
38
38
  from lamindb_setup._cache import get_cache_dir
39
39
 
40
- click.echo(f"The cache directory is {get_cache_dir()}.")
40
+ click.echo(f"The cache directory is {get_cache_dir()}")
@@ -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.filter(version=transform_version).one()
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
@@ -1,3 +0,0 @@
1
- """Lamin CLI."""
2
-
3
- __version__ = "0.16.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes