adalab-cli 2.0.0__tar.gz → 3.0.0__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.
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/PKG-INFO +3 -2
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/gallery_commands.py +20 -20
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/pyproject.toml +3 -3
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/README.md +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/__init__.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/__init__.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/app.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/authentication_flows.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/completion_tree.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/databases_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/factory.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/interactive.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/kernel_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/logger.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/login_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/oci_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/schedule_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/user_commands.py +0 -0
- {adalab_cli-2.0.0 → adalab_cli-3.0.0}/adalab_cli/cli/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: adalab-cli
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: The CLI app to interact with AdaLab.
|
|
5
5
|
Home-page: https://adamatics.com
|
|
6
6
|
Author: Adamatics ApS
|
|
@@ -13,9 +13,10 @@ Classifier: Programming Language :: Python
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
17
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
18
|
Classifier: Typing :: Typed
|
|
18
|
-
Requires-Dist: adalib (>=
|
|
19
|
+
Requires-Dist: adalib (>=5.0.0)
|
|
19
20
|
Requires-Dist: adalib-auth (>=1.2.2)
|
|
20
21
|
Requires-Dist: loguru (>=0.7.2)
|
|
21
22
|
Requires-Dist: prompt-toolkit (>=3.0.47)
|
|
@@ -15,7 +15,7 @@ Functions:
|
|
|
15
15
|
import sys
|
|
16
16
|
|
|
17
17
|
import typer
|
|
18
|
-
from adalib.cards import
|
|
18
|
+
from adalib.cards import expose_card, get_card_contents, get_cards, hide_card, toggle_card_review
|
|
19
19
|
from loguru import logger
|
|
20
20
|
from prompt_toolkit.completion import NestedCompleter
|
|
21
21
|
from rich import print as rich_print
|
|
@@ -89,8 +89,8 @@ def gallery_get_card(
|
|
|
89
89
|
rich_print(card)
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
@gallery_app.command("
|
|
93
|
-
def
|
|
92
|
+
@gallery_app.command("expose-card", no_args_is_help=True)
|
|
93
|
+
def gallery_expose_card(
|
|
94
94
|
card_id: Annotated[
|
|
95
95
|
int,
|
|
96
96
|
typer.Argument(
|
|
@@ -99,18 +99,18 @@ def gallery_approve_card(
|
|
|
99
99
|
],
|
|
100
100
|
):
|
|
101
101
|
"""
|
|
102
|
-
|
|
102
|
+
Exposes a card in gallery identify with CARD_ID.
|
|
103
103
|
"""
|
|
104
104
|
try:
|
|
105
|
-
|
|
105
|
+
expose_card(card_id=card_id)
|
|
106
106
|
except Exception:
|
|
107
|
-
rich_print(f"Card {card_id} [bold red]failed[/bold red] to
|
|
107
|
+
rich_print(f"Card {card_id} [bold red]failed[/bold red] to expose.")
|
|
108
108
|
sys.exit(1)
|
|
109
|
-
rich_print(f"Card {card_id} [bold green]
|
|
109
|
+
rich_print(f"Card {card_id} [bold green]exposed[/bold green] successfully.")
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
@gallery_app.command("
|
|
113
|
-
def
|
|
112
|
+
@gallery_app.command("hide-card")
|
|
113
|
+
def gallery_hide_card(
|
|
114
114
|
card_id: Annotated[
|
|
115
115
|
int,
|
|
116
116
|
typer.Argument(
|
|
@@ -119,34 +119,34 @@ def gallery_expose_card(
|
|
|
119
119
|
],
|
|
120
120
|
):
|
|
121
121
|
"""
|
|
122
|
-
|
|
122
|
+
Hides a card in gallery identify with CARD_ID.
|
|
123
123
|
"""
|
|
124
124
|
try:
|
|
125
|
-
|
|
125
|
+
hide_card(card_id=card_id)
|
|
126
126
|
except Exception:
|
|
127
|
-
rich_print(f"Card {card_id} [bold red]failed[/bold red] to
|
|
127
|
+
rich_print(f"Card {card_id} [bold red]failed[/bold red] to hide.")
|
|
128
128
|
sys.exit(1)
|
|
129
|
-
rich_print(f"Card {card_id} [bold green]
|
|
129
|
+
rich_print(f"Card {card_id} [bold green]hidden[/bold green] successfully.")
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
@gallery_app.command("
|
|
133
|
-
def
|
|
132
|
+
@gallery_app.command("toggle-review")
|
|
133
|
+
def gallery_toggle_card_review(
|
|
134
134
|
card_id: Annotated[
|
|
135
135
|
int,
|
|
136
136
|
typer.Argument(
|
|
137
|
-
help="The ID of the card you want to
|
|
137
|
+
help="The ID of the card whose review status you want to toggle.",
|
|
138
138
|
),
|
|
139
139
|
],
|
|
140
140
|
):
|
|
141
141
|
"""
|
|
142
|
-
|
|
142
|
+
Toggles the review status of a card in Gallery.
|
|
143
143
|
"""
|
|
144
144
|
try:
|
|
145
|
-
|
|
145
|
+
toggle_card_review(card_id=card_id)
|
|
146
146
|
except Exception:
|
|
147
|
-
rich_print(f"
|
|
147
|
+
rich_print(f"Review status update of card {card_id} [bold red]failed[/bold red].")
|
|
148
148
|
sys.exit(1)
|
|
149
|
-
rich_print(f"Card {card_id} [bold green]
|
|
149
|
+
rich_print(f"Card {card_id} review status [bold green]updated[/bold green] successfully.")
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
@gallery_app.callback("callback", invoke_without_command=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "adalab-cli"
|
|
3
|
-
version = "
|
|
3
|
+
version = "3.0.0"
|
|
4
4
|
description = "The CLI app to interact with AdaLab."
|
|
5
5
|
keywords = [ "cli",]
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ email = "info@adamatics.com"
|
|
|
10
10
|
|
|
11
11
|
[tool.poetry]
|
|
12
12
|
name = "adalab-cli"
|
|
13
|
-
version = "
|
|
13
|
+
version = "3.0.0"
|
|
14
14
|
description = "The CLI app to interact with AdaLab."
|
|
15
15
|
authors = ["Adamatics ApS <info@adamatics.com>"]
|
|
16
16
|
readme = "README.md"
|
|
@@ -35,7 +35,7 @@ python = "^3.10.0"
|
|
|
35
35
|
tabulate = ">=0.9.0"
|
|
36
36
|
typer = ">=0.9.0"
|
|
37
37
|
sh = ">=2.0.6"
|
|
38
|
-
adalib = {version = ">=
|
|
38
|
+
adalib = {version = ">=5.0.0", source = "adalib-dev"}
|
|
39
39
|
adalib-auth = {version = ">=1.2.2", source = "adalib-dev"}
|
|
40
40
|
loguru = ">=0.7.2"
|
|
41
41
|
prompt-toolkit = ">=3.0.47"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|