qbraid-cli 0.9.0__py3-none-any.whl → 0.9.0a0__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.
Potentially problematic release.
This version of qbraid-cli might be problematic. Click here for more details.
- qbraid_cli/_version.py +1 -1
- qbraid_cli/account/app.py +1 -1
- qbraid_cli/devices/app.py +1 -1
- qbraid_cli/envs/app.py +3 -3
- qbraid_cli/handlers.py +0 -4
- qbraid_cli/jobs/app.py +1 -1
- qbraid_cli/jobs/toggle_braket.py +1 -1
- qbraid_cli/main.py +1 -2
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/METADATA +2 -2
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/RECORD +14 -14
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/LICENSE +0 -0
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/WHEEL +0 -0
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/entry_points.txt +0 -0
- {qbraid_cli-0.9.0.dist-info → qbraid_cli-0.9.0a0.dist-info}/top_level.txt +0 -0
qbraid_cli/_version.py
CHANGED
qbraid_cli/account/app.py
CHANGED
|
@@ -28,7 +28,7 @@ def account_credits():
|
|
|
28
28
|
|
|
29
29
|
qbraid_credits: float = run_progress_task(get_credits)
|
|
30
30
|
typer.secho(
|
|
31
|
-
f"{typer.style('qBraid credits remaining:')} "
|
|
31
|
+
f"\n{typer.style('qBraid credits remaining:')} "
|
|
32
32
|
f"{typer.style(f'{qbraid_credits:.4f}', fg=typer.colors.MAGENTA, bold=True)}",
|
|
33
33
|
nl=True, # Ensure a newline after output (default is True)
|
|
34
34
|
)
|
qbraid_cli/devices/app.py
CHANGED
|
@@ -60,7 +60,7 @@ def devices_list( # pylint: disable=too-many-branches
|
|
|
60
60
|
header_3 = "ID"
|
|
61
61
|
header_4 = "Status"
|
|
62
62
|
console.print(
|
|
63
|
-
f"[bold]{header_1.ljust(12)}{header_2.ljust(35)}{header_3.ljust(41)}{header_4}[/bold]"
|
|
63
|
+
f"\n[bold]{header_1.ljust(12)}{header_2.ljust(35)}{header_3.ljust(41)}{header_4}[/bold]"
|
|
64
64
|
)
|
|
65
65
|
for device_provider, device_name, device_id, device_status in device_data:
|
|
66
66
|
if device_status == "ONLINE":
|
qbraid_cli/envs/app.py
CHANGED
|
@@ -88,7 +88,7 @@ def envs_create( # pylint: disable=too-many-statements
|
|
|
88
88
|
slug_path = env_path / slug
|
|
89
89
|
description = "None" if description == "" else description
|
|
90
90
|
|
|
91
|
-
typer.echo("## qBraid Metadata ##\n")
|
|
91
|
+
typer.echo("\n\n## qBraid Metadata ##\n")
|
|
92
92
|
typer.echo(f" name: {display_name}")
|
|
93
93
|
typer.echo(f" description: {description}")
|
|
94
94
|
typer.echo(f" tags: {tags}")
|
|
@@ -127,7 +127,7 @@ def envs_create( # pylint: disable=too-many-statements
|
|
|
127
127
|
|
|
128
128
|
console = Console()
|
|
129
129
|
console.print(
|
|
130
|
-
f"[bold green]Successfully created qBraid environment: "
|
|
130
|
+
f"\n[bold green]Successfully created qBraid environment: "
|
|
131
131
|
f"[/bold green][bold magenta]{name}[/bold magenta]\n"
|
|
132
132
|
)
|
|
133
133
|
typer.echo("# To activate this environment, use")
|
|
@@ -192,7 +192,7 @@ def envs_remove(
|
|
|
192
192
|
description="Deleting local environment...",
|
|
193
193
|
error_message="Failed to delete qBraid environment",
|
|
194
194
|
)
|
|
195
|
-
typer.echo(f"
|
|
195
|
+
typer.echo(f"\nEnvironment '{name}' successfully removed.")
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
@envs_app.command(name="list")
|
qbraid_cli/handlers.py
CHANGED
|
@@ -10,7 +10,6 @@ and executing operations with progress tracking within the qBraid CLI.
|
|
|
10
10
|
import os
|
|
11
11
|
import traceback
|
|
12
12
|
from pathlib import Path
|
|
13
|
-
from time import sleep
|
|
14
13
|
from typing import Any, Callable, Optional, Union
|
|
15
14
|
|
|
16
15
|
import typer
|
|
@@ -130,14 +129,11 @@ def run_progress_task(
|
|
|
130
129
|
try:
|
|
131
130
|
result = operation(*args, **kwargs)
|
|
132
131
|
progress.update(task, completed=100, status="Done")
|
|
133
|
-
sleep(0.15)
|
|
134
132
|
return result
|
|
135
133
|
except Exception as err: # pylint: disable=broad-exception-caught
|
|
136
134
|
progress.update(task, completed=100, status="Failed")
|
|
137
135
|
custom_message = error_message if error_message else str(err)
|
|
138
136
|
return handle_error(message=custom_message)
|
|
139
|
-
finally:
|
|
140
|
-
progress.remove_task(task)
|
|
141
137
|
|
|
142
138
|
|
|
143
139
|
def _format_list_items(items: list[str]) -> str:
|
qbraid_cli/jobs/app.py
CHANGED
|
@@ -120,7 +120,7 @@ def jobs_list(
|
|
|
120
120
|
header_1 = "Job ID"
|
|
121
121
|
header_2 = "Submitted"
|
|
122
122
|
header_3 = "Status"
|
|
123
|
-
console.print(f"[bold]{header_1.ljust(spacing)}{header_2.ljust(36)}{header_3}[/bold]")
|
|
123
|
+
console.print(f"\n[bold]{header_1.ljust(spacing)}{header_2.ljust(36)}{header_3}[/bold]")
|
|
124
124
|
for job_id, submitted, status in job_data:
|
|
125
125
|
if status == "COMPLETED":
|
|
126
126
|
status_color = "green"
|
qbraid_cli/jobs/toggle_braket.py
CHANGED
|
@@ -103,7 +103,7 @@ def confirm_updates(
|
|
|
103
103
|
else:
|
|
104
104
|
raise ValueError(f"Invalid mode: {mode}. Expected 'enable' or 'disable'.")
|
|
105
105
|
|
|
106
|
-
typer.echo(f"==> WARNING: {provider}/{core_package} package required <==")
|
|
106
|
+
typer.echo(f"\n==> WARNING: {provider}/{core_package} package required <==")
|
|
107
107
|
if (
|
|
108
108
|
installed_version is not None
|
|
109
109
|
and target_version is not None
|
qbraid_cli/main.py
CHANGED
|
@@ -6,7 +6,6 @@ Entrypoint for the qBraid CLI.
|
|
|
6
6
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
-
import rich
|
|
10
9
|
import typer
|
|
11
10
|
|
|
12
11
|
from qbraid_cli.account.app import account_app
|
|
@@ -68,7 +67,7 @@ def show_banner():
|
|
|
68
67
|
typer.echo("")
|
|
69
68
|
typer.echo("- Use 'qbraid --version' to see the current version.")
|
|
70
69
|
typer.echo("")
|
|
71
|
-
|
|
70
|
+
typer.echo("Reference Docs: https://docs.qbraid.com/cli/api-reference/qbraid")
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
@app.callback(invoke_without_command=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qbraid-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.0a0
|
|
4
4
|
Summary: Command Line Interface for interacting with all parts of the qBraid platform.
|
|
5
5
|
Author-email: qBraid Development Team <contact@qbraid.com>
|
|
6
6
|
License: Proprietary
|
|
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
|
|
|
29
29
|
License-File: LICENSE
|
|
30
30
|
Requires-Dist: typer>=0.12.1
|
|
31
31
|
Requires-Dist: rich>=10.11.0
|
|
32
|
-
Requires-Dist: qbraid-core>=0.1.
|
|
32
|
+
Requires-Dist: qbraid-core>=0.1.28
|
|
33
33
|
Provides-Extra: dev
|
|
34
34
|
Requires-Dist: isort; extra == "dev"
|
|
35
35
|
Requires-Dist: black; extra == "dev"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
qbraid_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
qbraid_cli/_version.py,sha256=
|
|
2
|
+
qbraid_cli/_version.py,sha256=HjY1UzcNtKKrJ8GVdemZ4PKAbhmYJUmCc4zQTJY4W0I,413
|
|
3
3
|
qbraid_cli/exceptions.py,sha256=KjlhYJhSHMVazaNiBjD_Ur06w4sekP8zRsFzBdyIpno,672
|
|
4
|
-
qbraid_cli/handlers.py,sha256=
|
|
5
|
-
qbraid_cli/main.py,sha256=
|
|
4
|
+
qbraid_cli/handlers.py,sha256=3RTG5FHL5GTyDoBUv81x5sLyqwf8nzkcqBi0k1ayoW8,7034
|
|
5
|
+
qbraid_cli/main.py,sha256=wjfPLM4FKmvk4Y3xQ7wW12RmRKy9kMIkdVtRlw6Nrbg,2749
|
|
6
6
|
qbraid_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
qbraid_cli/account/__init__.py,sha256=smlpUcVkM3QEbJG0norGM7i71XBJlUGQYByswTfPnmg,181
|
|
8
|
-
qbraid_cli/account/app.py,sha256
|
|
8
|
+
qbraid_cli/account/app.py,sha256=-dVlAdGG0xKvjzk9248p3EcHnvKamVSmiZBW_xCMGII,1823
|
|
9
9
|
qbraid_cli/admin/__init__.py,sha256=qcWD5mQEUCtr49mrUpZmk7eGDe0L_Gtc8RwZmzIXSwo,175
|
|
10
10
|
qbraid_cli/admin/app.py,sha256=NGisg2aouk8qK2oFogwblFTBK0vvTiL_zJYjeanC4x0,1576
|
|
11
11
|
qbraid_cli/admin/headers.py,sha256=WqpRYp81CQcF5-Afumo_qQrf-5XCfbndBJ6I7vOADKE,7133
|
|
@@ -14,25 +14,25 @@ qbraid_cli/configure/__init__.py,sha256=YaJ74Ztz2vl3eYp8_jVBucWkXscxz7EZEIzr70Of
|
|
|
14
14
|
qbraid_cli/configure/actions.py,sha256=-BduRmnxvf8JMNonb6VWFtdlHlcHPOPz3Bj5g8kfmBU,3197
|
|
15
15
|
qbraid_cli/configure/app.py,sha256=1uRe2lkUA4TtYb5b4mbD4LH-cKCbsZGT3Wfk7fpNzX0,2414
|
|
16
16
|
qbraid_cli/devices/__init__.py,sha256=hiScO-px6jCL5cJj5Hbty55EUfNejTO4bmqUZuS3aqc,181
|
|
17
|
-
qbraid_cli/devices/app.py,sha256=
|
|
17
|
+
qbraid_cli/devices/app.py,sha256=3Ly5PPNVhipzbX2h3FrB3fWawLbUcQFcUqv_cZv5eYk,2523
|
|
18
18
|
qbraid_cli/devices/validation.py,sha256=YhShyUufgrKnx2XjXOXF-PqFJYklJT9CgeqIwKcNam4,809
|
|
19
19
|
qbraid_cli/envs/__init__.py,sha256=1-cMvrATsddYxcetPJWxq6bEOqJWMktGdhoZ4qm8euA,172
|
|
20
20
|
qbraid_cli/envs/activate.py,sha256=VpvVYSfQDlcmlNWJOgkLIQ2p8YXPPLG8Jbl5t8GHUDw,2140
|
|
21
|
-
qbraid_cli/envs/app.py,sha256=
|
|
21
|
+
qbraid_cli/envs/app.py,sha256=5bb6OQUgcyCPw0REqEyjFHrjqsuhEn8zCsI3d6abgpI,8455
|
|
22
22
|
qbraid_cli/envs/create.py,sha256=xudzkLCNegY34zkXN_Vfl_0zVzg_tW83LcVx9quoWfU,988
|
|
23
23
|
qbraid_cli/envs/data_handling.py,sha256=Ibnp2yJoUDpivb_sNqi0suYgJZNat_LmM6Ya0Ovez5s,1288
|
|
24
24
|
qbraid_cli/jobs/__init__.py,sha256=qVLRHYIzP4XHpx_QWP_vCzd3LsCscCORaEx-Vcbx29U,172
|
|
25
|
-
qbraid_cli/jobs/app.py,sha256=
|
|
26
|
-
qbraid_cli/jobs/toggle_braket.py,sha256=
|
|
25
|
+
qbraid_cli/jobs/app.py,sha256=veyY5aunlPaDYCVmAHmEtaIo_veUVWRXmCB_GBJHEuQ,4918
|
|
26
|
+
qbraid_cli/jobs/toggle_braket.py,sha256=lQOG6h39vG3JsRh90LuJ8g_3hNuMSq8jdpRjjBG6SyQ,7446
|
|
27
27
|
qbraid_cli/jobs/validation.py,sha256=KlkqVH1-vlNCHSayEpxzyXU86_TMN5prGfMFEoyBsFs,2971
|
|
28
28
|
qbraid_cli/kernels/__init__.py,sha256=jORS9vV17s5laQyq8gSVB18EPBImgEIbMZ1wKC094DA,181
|
|
29
29
|
qbraid_cli/kernels/app.py,sha256=Sl57U1JXDKWoeMQDSXJRHlKzDYSdKIbV7tSytZXo5PM,2926
|
|
30
30
|
qbraid_cli/pip/__init__.py,sha256=tJtU0rxn-ODogNh5Y4pp_BgDQXMN-3JY1QGj0OZHwjQ,169
|
|
31
31
|
qbraid_cli/pip/app.py,sha256=wzvjX5NL37XIFtZ5KvTZ-nj9xwFKt8QLYZ_vGvk3tXo,1440
|
|
32
32
|
qbraid_cli/pip/hooks.py,sha256=jkIeev3cOd-cmaoJSdSqbmhTYCs6z1we84FMqa3ZoZw,2124
|
|
33
|
-
qbraid_cli-0.9.
|
|
34
|
-
qbraid_cli-0.9.
|
|
35
|
-
qbraid_cli-0.9.
|
|
36
|
-
qbraid_cli-0.9.
|
|
37
|
-
qbraid_cli-0.9.
|
|
38
|
-
qbraid_cli-0.9.
|
|
33
|
+
qbraid_cli-0.9.0a0.dist-info/LICENSE,sha256=P1gi-ofB8lmkRt_mxDoJpcgQq9Ckq9WhRAS1oYk-G1s,2506
|
|
34
|
+
qbraid_cli-0.9.0a0.dist-info/METADATA,sha256=YM5B8T3TY-xOKLffoclGkb89xsbrGUnB60T-b7ZSono,6787
|
|
35
|
+
qbraid_cli-0.9.0a0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
36
|
+
qbraid_cli-0.9.0a0.dist-info/entry_points.txt,sha256=c5ZJ7NjbxhDqMpou9q5F03_b_KG34HzFDijIDmEIwgQ,47
|
|
37
|
+
qbraid_cli-0.9.0a0.dist-info/top_level.txt,sha256=LTYJgeYSCHo9Il8vZu0yIPuGdGyNaIw6iRy6BeoZo8o,11
|
|
38
|
+
qbraid_cli-0.9.0a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|