lamin_cli 1.8.1__py2.py3-none-any.whl → 1.9.0__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -5,7 +5,7 @@ This is the command line interface for interacting with LaminDB & LaminHub.
5
5
  The interface is defined in `__main__.py`. The root API here is used by LaminR to replicate the CLI functionality.
6
6
  """
7
7
 
8
- __version__ = "1.8.1"
8
+ __version__ = "1.9.0"
9
9
 
10
10
  from lamindb_setup import disconnect, logout
11
11
  from lamindb_setup._connect_instance import _connect_cli as connect
lamin_cli/__main__.py CHANGED
@@ -180,8 +180,9 @@ def init(
180
180
  # fmt: off
181
181
  @main.command()
182
182
  @click.argument("instance", type=str)
183
+ @click.option("--use_proxy_db", is_flag=True, help="Use proxy database connection.")
183
184
  # fmt: on
184
- def connect(instance: str):
185
+ def connect(instance: str, use_proxy_db: bool):
185
186
  """Configure default instance for connections.
186
187
 
187
188
  Python/R sessions and CLI commands will then auto-connect to the configured instance.
@@ -190,7 +191,7 @@ def connect(instance: str):
190
191
 
191
192
  See also: Connect in a Python session via {func}`~lamindb.connect`.
192
193
  """
193
- return connect_(instance)
194
+ return connect_(instance, use_proxy_db=use_proxy_db)
194
195
 
195
196
 
196
197
  @main.command()
lamin_cli/_save.py CHANGED
@@ -160,7 +160,8 @@ def save(
160
160
  logger.important(f"labeled with project: {project_record.name}")
161
161
  if ln.setup.settings.instance.is_remote:
162
162
  slug = ln.setup.settings.instance.slug
163
- logger.important(f"go to: https://lamin.ai/{slug}/artifact/{artifact.uid}")
163
+ ui_url = ln.setup.settings.instance.ui_url
164
+ logger.important(f"go to: {ui_url}/{slug}/artifact/{artifact.uid}")
164
165
  return None
165
166
 
166
167
  if registry == "transform":
lamin_cli/_settings.py CHANGED
@@ -22,7 +22,7 @@ def settings(ctx):
22
22
 
23
23
  Allows to get and set these settings:
24
24
 
25
- - `work-dir` → {attr}`~lamindb.setup.core.SetupSettings.work_dir`
25
+ - `dev-dir` → {attr}`~lamindb.setup.core.SetupSettings.dev_dir`
26
26
  - `private-django-api` → {attr}`~lamindb.setup.core.SetupSettings.private_django_api`
27
27
  - `branch` → current branch (use `lamin switch --branch` to change)
28
28
  - `space` → current space (use `lamin switch --space` to change)
@@ -30,16 +30,16 @@ def settings(ctx):
30
30
  Examples for getting a setting:
31
31
 
32
32
  ```
33
- lamin settings get work-dir
33
+ lamin settings get dev-dir
34
34
  lamin settings get branch
35
35
  ```
36
36
 
37
37
  Examples for setting the working directory:
38
38
 
39
39
  ```
40
- lamin settings set work-dir . # set work-dir to current directory
41
- lamin settings set work-dir ~/my-project # set work-dir to ~/my-project
42
- lamin settings set work-dir none # unset work-dir
40
+ lamin settings set dev-dir . # set dev-dir to current directory
41
+ lamin settings set dev-dir ~/my-project # set dev-dir to ~/my-project
42
+ lamin settings set dev-dir none # unset dev-dir
43
43
  ```
44
44
  """
45
45
  if ctx.invoked_subcommand is None:
@@ -53,7 +53,7 @@ def settings(ctx):
53
53
  @click.argument(
54
54
  "setting",
55
55
  type=click.Choice(
56
- ["auto-connect", "private-django-api", "work-dir"], case_sensitive=False
56
+ ["auto-connect", "private-django-api", "dev-dir"], case_sensitive=False
57
57
  ),
58
58
  )
59
59
  @click.argument("value") # No explicit type - let Click handle it
@@ -65,17 +65,17 @@ def set(setting: str, value: str):
65
65
  settings_.auto_connect = click.BOOL(value)
66
66
  if setting == "private-django-api":
67
67
  settings_.private_django_api = click.BOOL(value)
68
- if setting == "work-dir":
68
+ if setting == "dev-dir":
69
69
  if value.lower() == "none":
70
70
  value = None # type: ignore[assignment]
71
- settings_.work_dir = value
71
+ settings_.dev_dir = value
72
72
 
73
73
 
74
74
  @settings.command("get")
75
75
  @click.argument(
76
76
  "setting",
77
77
  type=click.Choice(
78
- ["auto-connect", "private-django-api", "space", "branch", "work-dir"],
78
+ ["auto-connect", "private-django-api", "space", "branch", "dev-dir"],
79
79
  case_sensitive=False,
80
80
  ),
81
81
  )
@@ -87,8 +87,8 @@ def get(setting: str):
87
87
  _, value = settings_._read_branch_idlike_name()
88
88
  elif setting == "space":
89
89
  _, value = settings_._read_space_idlike_name()
90
- elif setting == "work-dir":
91
- value = settings_.work_dir
90
+ elif setting == "dev-dir":
91
+ value = settings_.dev_dir
92
92
  if value is None:
93
93
  value = "None"
94
94
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lamin_cli
3
- Version: 1.8.1
3
+ Version: 1.9.0
4
4
  Summary: Lamin CLI.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Description-Content-Type: text/markdown
@@ -1,17 +1,17 @@
1
- lamin_cli/__init__.py,sha256=4B9Apq4lWC216t-9IPkVf5khYyACn27JfUtlRahDXpg,563
2
- lamin_cli/__main__.py,sha256=OKlIhmvdf5InYTEfh9bO4pT7nYA1vYqB44MFw_Rz_uA,19093
1
+ lamin_cli/__init__.py,sha256=DFl_WGoPWYCrKssL6X5UCL9Via9gGqBVfd0j8UzEsL0,563
2
+ lamin_cli/__main__.py,sha256=zuzvpfWDvrLxvcLNwAyGQHIGXiFvAra4dnPe7Nygu6M,19225
3
3
  lamin_cli/_annotate.py,sha256=ZD76__K-mQt7UpYqyM1I2lKCs-DraTmnkjsByIHmD-g,1839
4
4
  lamin_cli/_cache.py,sha256=oplwE8AcS_9PYptQUZxff2qTIdNFS81clGPkJNWk098,800
5
5
  lamin_cli/_delete.py,sha256=dxItUgf7At247iYGLagmJ2Ccp5nAWgodPL7c7zfZQ_0,1420
6
6
  lamin_cli/_load.py,sha256=OgTGqZQtoJ0GYOhuJihz-izt0F4jM4U_nSX_vhPoukg,7698
7
7
  lamin_cli/_migration.py,sha256=XUl_L9_3pTTk5jJoBiqbzf0Bd2LdKKtHa1zPZ4Rla5c,1267
8
- lamin_cli/_save.py,sha256=IM0iKOhINIaoX_lGJ9QeUOI56idyB1nN4Et8XBGP-u8,11508
9
- lamin_cli/_settings.py,sha256=mTnwU5zfBGwt9x6RrhFpi4f0DeyEfI02YWs96x_JYWw,2672
8
+ lamin_cli/_save.py,sha256=EPYsRpl0vD_Q52ksqVyP56ZOvPXBjgTFPeJWyGokN8I,11555
9
+ lamin_cli/_settings.py,sha256=nqVM8FO9kjL0SXYqP8x-Xfww6Qth4I86HKKeTirsgc4,2657
10
10
  lamin_cli/urls.py,sha256=gc72s4SpaAQA8J50CtCIWlr49DWOSL_a6OM9lXfPouM,367
11
11
  lamin_cli/compute/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  lamin_cli/compute/modal.py,sha256=QnR7GyyvWWWkLnou95HxS9xxSQfw1k-SiefM_qRVnU0,6010
13
- lamin_cli-1.8.1.dist-info/entry_points.txt,sha256=Qms85i9cZPlu-U7RnVZhFsF7vJ9gaLZUFkCjcGcXTpg,49
14
- lamin_cli-1.8.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- lamin_cli-1.8.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- lamin_cli-1.8.1.dist-info/METADATA,sha256=0PwK3EvQkEQGWQnYogB_1EQBraLSvIKbNNkN9A0gtz4,337
17
- lamin_cli-1.8.1.dist-info/RECORD,,
13
+ lamin_cli-1.9.0.dist-info/entry_points.txt,sha256=Qms85i9cZPlu-U7RnVZhFsF7vJ9gaLZUFkCjcGcXTpg,49
14
+ lamin_cli-1.9.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ lamin_cli-1.9.0.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
+ lamin_cli-1.9.0.dist-info/METADATA,sha256=YhZjJlaC6E_BDVHstvkFya-5p2qEn6lZCrPUzYkN_8w,337
17
+ lamin_cli-1.9.0.dist-info/RECORD,,