qbraid-cli 0.12.0a4__tar.gz → 0.12.0a6__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 (52) hide show
  1. {qbraid_cli-0.12.0a4/qbraid_cli.egg-info → qbraid_cli-0.12.0a6}/PKG-INFO +1 -1
  2. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/pyproject.toml +1 -1
  3. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/envs/app.py +23 -3
  4. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/envs/create.py +4 -2
  5. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6/qbraid_cli.egg-info}/PKG-INFO +1 -1
  6. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/LICENSE +0 -0
  7. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/README.md +0 -0
  8. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/__init__.py +0 -0
  9. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/_version.py +0 -0
  10. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/account/__init__.py +0 -0
  11. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/account/app.py +0 -0
  12. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/admin/__init__.py +0 -0
  13. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/admin/app.py +0 -0
  14. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/admin/headers.py +0 -0
  15. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/admin/validation.py +0 -0
  16. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/chat/__init__.py +0 -0
  17. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/chat/app.py +0 -0
  18. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/configure/__init__.py +0 -0
  19. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/configure/actions.py +0 -0
  20. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/configure/app.py +0 -0
  21. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/configure/claude_config.py +0 -0
  22. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/devices/__init__.py +0 -0
  23. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/devices/app.py +0 -0
  24. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/devices/validation.py +0 -0
  25. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/envs/__init__.py +0 -0
  26. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/envs/activate.py +0 -0
  27. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/envs/data_handling.py +0 -0
  28. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/exceptions.py +0 -0
  29. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/files/__init__.py +0 -0
  30. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/files/app.py +0 -0
  31. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/handlers.py +0 -0
  32. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/jobs/__init__.py +0 -0
  33. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/jobs/app.py +0 -0
  34. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/jobs/toggle_braket.py +0 -0
  35. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/jobs/validation.py +0 -0
  36. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/kernels/__init__.py +0 -0
  37. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/kernels/app.py +0 -0
  38. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/main.py +0 -0
  39. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/mcp/__init__.py +0 -0
  40. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/mcp/app.py +0 -0
  41. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/mcp/serve.py +0 -0
  42. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/pip/__init__.py +0 -0
  43. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/pip/app.py +0 -0
  44. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/pip/hooks.py +0 -0
  45. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli/py.typed +0 -0
  46. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli.egg-info/SOURCES.txt +0 -0
  47. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli.egg-info/dependency_links.txt +0 -0
  48. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli.egg-info/entry_points.txt +0 -0
  49. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli.egg-info/requires.txt +0 -0
  50. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/qbraid_cli.egg-info/top_level.txt +0 -0
  51. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/setup.cfg +0 -0
  52. {qbraid_cli-0.12.0a4 → qbraid_cli-0.12.0a6}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qbraid-cli
3
- Version: 0.12.0a4
3
+ Version: 0.12.0a6
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-Expression: LicenseRef-Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qbraid-cli"
7
- version = "0.12.0a4"
7
+ version = "0.12.0a6"
8
8
  description = "Command Line Interface for interacting with all parts of the qBraid platform."
9
9
  readme = "README.md"
10
10
  authors = [{ name = "qBraid Development Team", email = "contact@qbraid.com" }]
@@ -48,6 +48,9 @@ def envs_create( # pylint: disable=too-many-statements
48
48
  auto_confirm: bool = typer.Option(
49
49
  False, "--yes", "-y", help="Automatically answer 'yes' to all prompts"
50
50
  ),
51
+ add_kernels: bool = typer.Option(
52
+ False, "--add-kernels", help="Add kernel to Jupyter's global kernel registry"
53
+ ),
51
54
  ) -> None:
52
55
  """Create a new qBraid environment."""
53
56
  env_description = description or ""
@@ -149,6 +152,7 @@ def envs_create( # pylint: disable=too-many-statements
149
152
  env_id,
150
153
  env_id_path,
151
154
  env_config,
155
+ add_kernels,
152
156
  description="Generating qBraid assets...",
153
157
  error_message="Failed to create qBraid environment",
154
158
  )
@@ -163,6 +167,24 @@ def envs_create( # pylint: disable=too-many-statements
163
167
  error_message="Failed to create qBraid environment",
164
168
  )
165
169
 
170
+ # Install python packages if specified
171
+ if env_config.python_packages:
172
+ from qbraid_core.services.environments.packages import pip_install
173
+
174
+ packages = [
175
+ f"{pkg}{ver}" if ver else pkg for pkg, ver in env_config.python_packages.items()
176
+ ]
177
+ if packages:
178
+ run_progress_task(
179
+ pip_install,
180
+ env_id,
181
+ packages,
182
+ False, # upgrade_pip
183
+ False, # system_site_packages
184
+ description="Installing Python packages...",
185
+ error_message="Failed to install Python packages",
186
+ )
187
+
166
188
  console = Console()
167
189
  console.print(
168
190
  f"[bold green]Successfully created qBraid environment: "
@@ -1140,9 +1162,7 @@ def envs_share(
1140
1162
  help="Grant read permission (view environment)"
1141
1163
  ),
1142
1164
  write: bool = typer.Option(
1143
- False,
1144
- "--write",
1145
- help="Grant write permission (modify environment)"
1165
+ False, "--write", help="Grant write permission (modify environment)"
1146
1166
  ),
1147
1167
  execute: bool = typer.Option(
1148
1168
  True,
@@ -22,9 +22,11 @@ def update_state_json(*ags, **kwargs) -> None:
22
22
  return update_state(*ags, **kwargs)
23
23
 
24
24
 
25
- def create_qbraid_env_assets(env_id: str, env_id_path: str, env_config: EnvironmentConfig) -> None:
25
+ def create_qbraid_env_assets(
26
+ env_id: str, env_id_path: str, env_config: EnvironmentConfig, auto_add_kernels: bool = False
27
+ ) -> None:
26
28
  """Create a qBraid environment including python venv, PS1 configs,
27
29
  kernel resource files, and qBraid state.json."""
28
30
  from qbraid_core.services.environments.create import create_qbraid_env_assets as create_assets
29
31
 
30
- return create_assets(env_id, env_id_path, env_config)
32
+ return create_assets(env_id, env_id_path, env_config, auto_add_kernels=auto_add_kernels)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qbraid-cli
3
- Version: 0.12.0a4
3
+ Version: 0.12.0a6
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-Expression: LicenseRef-Proprietary
File without changes
File without changes
File without changes