lamin_cli 1.8.2__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.2"
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/_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.2
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,4 +1,4 @@
1
- lamin_cli/__init__.py,sha256=UE_o2BSyhfXL0PkGbgUKzFvRh9nw9oZf7sdX1gNf0G0,563
1
+ lamin_cli/__init__.py,sha256=DFl_WGoPWYCrKssL6X5UCL9Via9gGqBVfd0j8UzEsL0,563
2
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
@@ -6,12 +6,12 @@ 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
8
  lamin_cli/_save.py,sha256=EPYsRpl0vD_Q52ksqVyP56ZOvPXBjgTFPeJWyGokN8I,11555
9
- lamin_cli/_settings.py,sha256=mTnwU5zfBGwt9x6RrhFpi4f0DeyEfI02YWs96x_JYWw,2672
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.2.dist-info/entry_points.txt,sha256=Qms85i9cZPlu-U7RnVZhFsF7vJ9gaLZUFkCjcGcXTpg,49
14
- lamin_cli-1.8.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- lamin_cli-1.8.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- lamin_cli-1.8.2.dist-info/METADATA,sha256=ISh-SL8AGEvoOOSIkaUREwzYdLVk4U01NVAgySnzA20,337
17
- lamin_cli-1.8.2.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,,