qbraid-cli 0.10.5__tar.gz → 0.10.7__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.

Potentially problematic release.


This version of qbraid-cli might be problematic. Click here for more details.

Files changed (124) hide show
  1. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/bump-version.yml +1 -1
  2. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/ci-pr-target.yml +4 -4
  3. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/docs-pr.yml +3 -3
  4. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/docs.yml +1 -1
  5. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/format.yml +1 -1
  6. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/main.yml +4 -4
  7. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/pre-release.yml +1 -1
  8. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/publish.yml +1 -1
  9. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/workflows/tag-on-merge.yml +1 -1
  10. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/PKG-INFO +4 -4
  11. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/requirements.txt +1 -1
  12. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/pyproject.toml +4 -4
  13. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/_version.py +2 -2
  14. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/devices/app.py +25 -2
  15. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/envs/app.py +26 -21
  16. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/files/app.py +2 -2
  17. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/handlers.py +16 -0
  18. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/jobs/app.py +22 -5
  19. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/PKG-INFO +4 -4
  20. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/SOURCES.txt +2 -0
  21. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/requires.txt +3 -3
  22. qbraid_cli-0.10.7/tests/devices/test_devices_get.py +278 -0
  23. qbraid_cli-0.10.7/tests/jobs/test_jobs_get.py +179 -0
  24. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.env.example +0 -0
  25. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  26. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  27. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  28. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.github/dependabot.yml +0 -0
  29. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.gitignore +0 -0
  30. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/.readthedocs.yml +0 -0
  31. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/CONTRIBUTING.md +0 -0
  32. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/LICENSE +0 -0
  33. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/MANIFEST.IN +0 -0
  34. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/Makefile +0 -0
  35. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/README.md +0 -0
  36. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/Makefile +0 -0
  37. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/_static/favicon.ico +0 -0
  38. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/_static/logo.png +0 -0
  39. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/_static/style/custom.css +0 -0
  40. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/_static/style/s4defs-roles.css +0 -0
  41. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/conf.py +0 -0
  42. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/index.rst +0 -0
  43. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/docs/make.bat +0 -0
  44. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/__init__.py +0 -0
  45. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/account/__init__.py +0 -0
  46. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/account/app.py +0 -0
  47. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/admin/__init__.py +0 -0
  48. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/admin/app.py +0 -0
  49. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/admin/headers.py +0 -0
  50. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/admin/validation.py +0 -0
  51. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/chat/__init__.py +0 -0
  52. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/chat/app.py +0 -0
  53. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/configure/__init__.py +0 -0
  54. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/configure/actions.py +0 -0
  55. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/configure/app.py +0 -0
  56. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/devices/__init__.py +0 -0
  57. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/devices/validation.py +0 -0
  58. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/envs/__init__.py +0 -0
  59. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/envs/activate.py +0 -0
  60. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/envs/create.py +0 -0
  61. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/envs/data_handling.py +0 -0
  62. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/exceptions.py +0 -0
  63. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/files/__init__.py +0 -0
  64. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/jobs/__init__.py +0 -0
  65. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/jobs/toggle_braket.py +0 -0
  66. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/jobs/validation.py +0 -0
  67. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/kernels/__init__.py +0 -0
  68. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/kernels/app.py +0 -0
  69. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/main.py +0 -0
  70. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/pip/__init__.py +0 -0
  71. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/pip/app.py +0 -0
  72. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/pip/hooks.py +0 -0
  73. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli/py.typed +0 -0
  74. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/dependency_links.txt +0 -0
  75. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/entry_points.txt +0 -0
  76. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/qbraid_cli.egg-info/top_level.txt +0 -0
  77. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/setup.cfg +0 -0
  78. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/__init__.py +0 -0
  79. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/account/__init__.py +0 -0
  80. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/account/test_account_credits.py +0 -0
  81. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/admin/test_headers.py +0 -0
  82. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/__init__.py +0 -0
  83. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/test_configure_commands.py +0 -0
  84. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/test_configure_default.py +0 -0
  85. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/test_configure_prompt_for_config.py +0 -0
  86. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/test_configure_set.py +0 -0
  87. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/configure/test_configure_validate_input.py +0 -0
  88. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/conftest.py +0 -0
  89. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/devices/__init__.py +0 -0
  90. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/devices/test_devices_list.py +0 -0
  91. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/devices/test_devices_validations.py +0 -0
  92. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/__init__.py +0 -0
  93. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_activate.py +0 -0
  94. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_activate_find_shell_rc.py +0 -0
  95. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_activate_print_command.py +0 -0
  96. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_activate_pyenv.py +0 -0
  97. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_create_from_yaml.py +0 -0
  98. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_list.py +0 -0
  99. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/envs/test_envs_remove.py +0 -0
  100. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/files/__init__.py +0 -0
  101. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/files/test_files_commands.py +0 -0
  102. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/__init__.py +0 -0
  103. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_disable.py +0 -0
  104. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_enable.py +0 -0
  105. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_list.py +0 -0
  106. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_state.py +0 -0
  107. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_toggle_braket_confirm.py +0 -0
  108. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_toggle_braket_disable.py +0 -0
  109. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_toggle_braket_enable.py +0 -0
  110. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_toggle_braket_get_data.py +0 -0
  111. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_validate_get_state.py +0 -0
  112. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_validate_handle_state.py +0 -0
  113. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/jobs/test_jobs_validate_library.py +0 -0
  114. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/kernels/__init__.py +0 -0
  115. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/kernels/test_kernels_list.py +0 -0
  116. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/resources/envs/correct.yaml +0 -0
  117. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/resources/envs/icon.png +0 -0
  118. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tests/resources/envs/incorrect.yaml +0 -0
  119. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/bump_version.py +0 -0
  120. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/create_dev_build.sh +0 -0
  121. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/install_wheel_extras.sh +0 -0
  122. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/split_md.py +0 -0
  123. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/split_rst.py +0 -0
  124. {qbraid_cli-0.10.5 → qbraid_cli-0.10.7}/tools/stamp_pre_release.py +0 -0
@@ -21,7 +21,7 @@ jobs:
21
21
  pull-requests: write
22
22
  steps:
23
23
  - name: Checkout code
24
- uses: actions/checkout@v4
24
+ uses: actions/checkout@v5
25
25
  with:
26
26
  ref: 'main'
27
27
 
@@ -14,7 +14,7 @@ jobs:
14
14
  python-version: ['3.11']
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@v5
18
18
  - name: Set up Python ${{ matrix.python-version }}
19
19
  uses: actions/setup-python@v5
20
20
  with:
@@ -44,14 +44,14 @@ jobs:
44
44
  fail-fast: true
45
45
 
46
46
  steps:
47
- - uses: actions/checkout@v4
47
+ - uses: actions/checkout@v5
48
48
  - name: Set up Python ${{ matrix.python-version }}
49
49
  uses: actions/setup-python@v5
50
50
  with:
51
51
  python-version: ${{ matrix.python-version }}
52
52
  cache: pip
53
53
  - name: Download built package
54
- uses: actions/download-artifact@v4
54
+ uses: actions/download-artifact@v5
55
55
  with:
56
56
  name: built-package
57
57
  path: dist
@@ -73,7 +73,7 @@ jobs:
73
73
  QBRAID_API_KEY: ${{ secrets.QBRAID_API_KEY }}
74
74
  - name: Upload coverage to Codecov
75
75
  if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
76
- uses: codecov/codecov-action@v5.4.2
76
+ uses: codecov/codecov-action@v5.4.3
77
77
  with:
78
78
  token: ${{ secrets.CODECOV_TOKEN }}
79
79
  fail_ci_if_error: false
@@ -12,7 +12,7 @@ jobs:
12
12
  cli_version: ${{ steps.get_version.outputs.version }}
13
13
  steps:
14
14
  - name: Checkout code
15
- uses: actions/checkout@v4
15
+ uses: actions/checkout@v5
16
16
  with:
17
17
  ref: main
18
18
 
@@ -52,13 +52,13 @@ jobs:
52
52
 
53
53
  steps:
54
54
  - name: Download docs assets
55
- uses: actions/download-artifact@v4
55
+ uses: actions/download-artifact@v5
56
56
  with:
57
57
  name: api-reference
58
58
  path: ./api-reference
59
59
 
60
60
  - name: Checkout qBraid/docs repo
61
- uses: actions/checkout@v4
61
+ uses: actions/checkout@v5
62
62
  with:
63
63
  repository: qBraid/docs
64
64
  token: ${{ secrets.BOT_TOKEN }}
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@v5
18
18
  - name: Set up Python
19
19
  uses: actions/setup-python@v5
20
20
  with:
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
 
14
14
  steps:
15
- - uses: actions/checkout@v4
15
+ - uses: actions/checkout@v5
16
16
  - name: Set up Python
17
17
  uses: actions/setup-python@v5
18
18
  with:
@@ -17,7 +17,7 @@ jobs:
17
17
  python-version: ['3.11']
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v4
20
+ - uses: actions/checkout@v5
21
21
  - name: Set up Python ${{ matrix.python-version }}
22
22
  uses: actions/setup-python@v5
23
23
  with:
@@ -47,14 +47,14 @@ jobs:
47
47
  fail-fast: true
48
48
 
49
49
  steps:
50
- - uses: actions/checkout@v4
50
+ - uses: actions/checkout@v5
51
51
  - name: Set up Python ${{ matrix.python-version }}
52
52
  uses: actions/setup-python@v5
53
53
  with:
54
54
  python-version: ${{ matrix.python-version }}
55
55
  cache: pip
56
56
  - name: Download built package
57
- uses: actions/download-artifact@v4
57
+ uses: actions/download-artifact@v5
58
58
  with:
59
59
  name: built-package
60
60
  path: dist
@@ -76,7 +76,7 @@ jobs:
76
76
  QBRAID_API_KEY: ${{ secrets.QBRAID_API_KEY }}
77
77
  - name: Upload coverage to Codecov
78
78
  if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
79
- uses: codecov/codecov-action@v5.4.2
79
+ uses: codecov/codecov-action@v5.4.3
80
80
  with:
81
81
  token: ${{ secrets.CODECOV_TOKEN }}
82
82
  fail_ci_if_error: false
@@ -9,7 +9,7 @@ jobs:
9
9
  environment: publish
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v4
12
+ - uses: actions/checkout@v5
13
13
  with:
14
14
  fetch-depth: 1
15
15
 
@@ -9,7 +9,7 @@ jobs:
9
9
  environment: publish
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v4
12
+ - uses: actions/checkout@v5
13
13
  with:
14
14
  fetch-depth: 1
15
15
 
@@ -18,7 +18,7 @@ jobs:
18
18
  echo "version=$VERSION" >> $GITHUB_OUTPUT
19
19
 
20
20
  - name: Checkout code
21
- uses: actions/checkout@v4
21
+ uses: actions/checkout@v5
22
22
  with:
23
23
  ref: 'main'
24
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qbraid-cli
3
- Version: 0.10.5
3
+ Version: 0.10.7
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,12 +29,12 @@ 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: click
33
- Requires-Dist: qbraid-core<0.2,>=0.1.40
32
+ Requires-Dist: click<=8.1.8
33
+ Requires-Dist: qbraid-core<0.2,>=0.1.41
34
34
  Provides-Extra: jobs
35
35
  Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
36
36
  Provides-Extra: envs
37
- Requires-Dist: qbraid-core[environments]; extra == "envs"
37
+ Requires-Dist: qbraid-core[environments]<0.2,>=0.1.41; extra == "envs"
38
38
  Provides-Extra: dev
39
39
  Requires-Dist: isort; extra == "dev"
40
40
  Requires-Dist: black; extra == "dev"
@@ -1,6 +1,6 @@
1
1
  sphinx>=7.2.6,<8.3.0
2
2
  sphinx-rtd-theme>=1.3,<3.1
3
- docutils<0.22
3
+ docutils<0.23
4
4
  toml
5
5
  build
6
6
  m2r
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qbraid-cli"
7
- version = "0.10.5"
7
+ version = "0.10.7"
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" }]
@@ -30,8 +30,8 @@ classifiers = [
30
30
  dependencies = [
31
31
  "typer>=0.12.1",
32
32
  "rich>=10.11.0",
33
- "click",
34
- "qbraid-core>=0.1.40,<0.2",
33
+ "click<=8.1.8",
34
+ "qbraid-core>=0.1.41,<0.2",
35
35
  ]
36
36
  requires-python = ">= 3.9"
37
37
 
@@ -43,7 +43,7 @@ Discord = "https://discord.gg/KugF6Cnncm"
43
43
 
44
44
  [project.optional-dependencies]
45
45
  jobs = ["amazon-braket-sdk>=1.48.1"]
46
- envs = ["qbraid-core[environments]"]
46
+ envs = ["qbraid-core[environments]>=0.1.41,<0.2"]
47
47
  dev = ["isort", "black", "pytest", "pytest-cov"]
48
48
 
49
49
  [project.scripts]
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1.dev1+gd532fb2'
21
- __version_tuple__ = version_tuple = (0, 1, 'dev1', 'gd532fb2')
20
+ __version__ = version = '0.1.dev1+g494c7ce'
21
+ __version_tuple__ = version_tuple = (0, 1, 'dev1', 'g494c7ce')
@@ -12,7 +12,7 @@ import typer
12
12
  from rich.console import Console
13
13
 
14
14
  from qbraid_cli.devices.validation import validate_provider, validate_status, validate_type
15
- from qbraid_cli.handlers import run_progress_task
15
+ from qbraid_cli.handlers import print_formatted_data, run_progress_task
16
16
 
17
17
  devices_app = typer.Typer(help="Manage qBraid quantum devices.", no_args_is_help=True)
18
18
 
@@ -29,7 +29,10 @@ def devices_list( # pylint: disable=too-many-branches
29
29
  None,
30
30
  "--provider",
31
31
  "-p",
32
- help="'AWS'|'IBM'|'IonQ'|'Rigetti'|'OQC'|'QuEra'",
32
+ help=(
33
+ "'AWS'|'IBM'|'IonQ'|'Rigetti'|'OQC'|'QuEra'|'IQM'|"
34
+ "'NEC'|'qBraid'|'Azure'|'Pasqal'|'Quantinuum'|'Equal1'"
35
+ ),
33
36
  callback=validate_provider,
34
37
  ),
35
38
  ) -> None:
@@ -76,5 +79,25 @@ def devices_list( # pylint: disable=too-many-branches
76
79
  console.print(f"\n{msg}", style="italic", justify="left")
77
80
 
78
81
 
82
+ @devices_app.command(name="get")
83
+ def devices_get(
84
+ device_id: str = typer.Argument(..., help="The ID of the device to get."),
85
+ fmt: bool = typer.Option(
86
+ True, "--no-fmt", help="Disable rich console formatting (output raw data)"
87
+ ),
88
+ ) -> None:
89
+ """Get a qBraid quantum device."""
90
+
91
+ def get_device():
92
+ from qbraid_core.services.quantum import QuantumClient
93
+
94
+ client = QuantumClient()
95
+ return client.get_device(device_id)
96
+
97
+ data: dict[str, Any] = run_progress_task(get_device)
98
+
99
+ print_formatted_data(data, fmt)
100
+
101
+
79
102
  if __name__ == "__main__":
80
103
  devices_app()
@@ -51,7 +51,7 @@ def envs_create( # pylint: disable=too-many-statements
51
51
  )
52
52
 
53
53
  env_details_in_cli = name is not None and env_description != ""
54
- custom_env_data = None
54
+ env_config = None
55
55
  if env_details_in_cli and file_path:
56
56
  handle_error(
57
57
  error_type="ArgumentConflictError",
@@ -68,12 +68,12 @@ def envs_create( # pylint: disable=too-many-statements
68
68
  else:
69
69
  try:
70
70
  if file_path:
71
- custom_env_data: EnvironmentConfig = EnvironmentConfig.from_yaml(file_path)
71
+ env_config: EnvironmentConfig = EnvironmentConfig.from_yaml(file_path)
72
72
  except ValueError as err:
73
73
  handle_error(error_type="YamlValidationError", message=str(err))
74
74
 
75
75
  if not name:
76
- name = custom_env_data.name
76
+ name = env_config.name
77
77
 
78
78
  def create_environment(*args, **kwargs) -> "tuple[dict, EMC]":
79
79
  """Create a qBraid environment."""
@@ -99,42 +99,47 @@ def envs_create( # pylint: disable=too-many-statements
99
99
 
100
100
  return env_path, python_version
101
101
 
102
- if not custom_env_data:
103
- custom_env_data = EnvironmentConfig(
102
+ if not env_config:
103
+ env_config = EnvironmentConfig(
104
104
  name=name,
105
105
  description=env_description,
106
106
  )
107
107
 
108
- environment, emc = run_progress_task(
108
+ create_env_out: tuple[dict, EMC] = run_progress_task(
109
109
  create_environment,
110
- custom_env_data,
110
+ env_config,
111
111
  description="Validating request...",
112
112
  error_message="Failed to create qBraid environment",
113
113
  )
114
114
 
115
- env_path, python_version = run_progress_task(
115
+ environment, emc = create_env_out
116
+ slug = environment.get("slug")
117
+
118
+ local_data_out: tuple[Path, str] = run_progress_task(
116
119
  gather_local_data,
117
120
  description="Solving environment...",
118
121
  error_message="Failed to create qBraid environment",
119
122
  )
120
123
 
121
- slug = environment.get("slug")
122
- display_name = environment.get("displayName")
123
- prompt = environment.get("prompt")
124
- description = environment.get("description")
125
- tags = environment.get("tags")
126
- kernel_name = environment.get("kernelName")
124
+ env_path, python_version = local_data_out
125
+
126
+ env_config.name = environment.get("displayName")
127
+ env_config.shell_prompt = environment.get("prompt")
128
+ env_config.description = environment.get("description")
129
+ env_config.tags = environment.get("tags")
130
+ env_config.kernel_name = environment.get("kernelName")
131
+ env_config.python_version = python_version
127
132
 
128
133
  slug_path = env_path / slug
129
134
  description = "None" if description == "" else description
130
135
 
131
136
  typer.echo("## qBraid Metadata ##\n")
132
- typer.echo(f" name: {display_name}")
133
- typer.echo(f" description: {description}")
134
- typer.echo(f" tags: {tags}")
137
+ typer.echo(f" name: {env_config.name}")
138
+ typer.echo(f" description: {env_config.description}")
139
+ typer.echo(f" tags: {env_config.tags}")
135
140
  typer.echo(f" slug: {slug}")
136
- typer.echo(f" shellPrompt: {prompt}")
137
- typer.echo(f" kernelName: {kernel_name}")
141
+ typer.echo(f" shellPrompt: {env_config.shell_prompt}")
142
+ typer.echo(f" kernelName: {env_config.kernel_name}")
138
143
 
139
144
  typer.echo("\n\n## Environment Plan ##\n")
140
145
  typer.echo(f" location: {slug_path}")
@@ -151,7 +156,7 @@ def envs_create( # pylint: disable=too-many-statements
151
156
  create_qbraid_env_assets,
152
157
  slug,
153
158
  slug_path,
154
- custom_env_data,
159
+ env_config,
155
160
  description="Generating qBraid assets...",
156
161
  error_message="Failed to create qBraid environment",
157
162
  )
@@ -159,7 +164,7 @@ def envs_create( # pylint: disable=too-many-statements
159
164
  run_progress_task(
160
165
  create_venv,
161
166
  slug_path,
162
- prompt,
167
+ env_config.shell_prompt,
163
168
  description="Creating virtual environment...",
164
169
  error_message="Failed to create qBraid environment",
165
170
  )
@@ -27,10 +27,10 @@ def is_file_less_than_10mb(file_path: Path) -> bool:
27
27
  Returns:
28
28
  bool: True if the file is less than 10MB, False otherwise.
29
29
  """
30
- TEN_MB = 10 * 1024 * 1024 # 10 * 1024 KB * 1024 bytes
30
+ ten_mb = 10485760 # 10 MB in bytes (10 * 1024 * 1024)
31
31
 
32
32
  try:
33
- return file_path.stat().st_size < TEN_MB
33
+ return file_path.stat().st_size < ten_mb
34
34
  except OSError:
35
35
  return False
36
36
 
@@ -89,6 +89,22 @@ def handle_filesystem_operation(operation: Callable[[], None], path: Path) -> No
89
89
  raise QbraidException(f"Failed to save configuration to {path}: {err.strerror}") from err
90
90
 
91
91
 
92
+ def print_formatted_data(data: Any, fmt: bool = True) -> None:
93
+ """
94
+ Print data with optional formatting using rich console.
95
+
96
+ Args:
97
+ data (Any): The data to be printed.
98
+ fmt (bool): If True, use rich console formatting. If False, use standard print.
99
+ Defaults to True.
100
+ """
101
+ if fmt:
102
+ console = Console()
103
+ console.print(data)
104
+ else:
105
+ print(data)
106
+
107
+
92
108
  def run_progress_task(
93
109
  operation: Callable[..., Any],
94
110
  *args,
@@ -11,7 +11,7 @@ from typing import Any, Callable
11
11
  import typer
12
12
  from rich.console import Console
13
13
 
14
- from qbraid_cli.handlers import handle_error, run_progress_task
14
+ from qbraid_cli.handlers import handle_error, print_formatted_data, run_progress_task
15
15
  from qbraid_cli.jobs.toggle_braket import disable_braket, enable_braket
16
16
  from qbraid_cli.jobs.validation import handle_jobs_state, run_progress_get_state, validate_library
17
17
 
@@ -107,11 +107,8 @@ def jobs_list(
107
107
 
108
108
  result: tuple[Any, Callable] = run_progress_task(import_jobs)
109
109
  client, process_job_data = result
110
- # https://github.com/qBraid/api/issues/644
111
- # raw_data = client.search_jobs(query={"numResults": limit})
112
- raw_data = client.search_jobs(query={})
110
+ raw_data = client.search_jobs(query={"resultsPerPage": limit, "page": 0})
113
111
  job_data, msg = process_job_data(raw_data)
114
- job_data = job_data[:limit]
115
112
 
116
113
  longest_job_id = max(len(item[0]) for item in job_data)
117
114
  spacing = longest_job_id + 5
@@ -148,5 +145,25 @@ def jobs_list(
148
145
  handle_error(message="Failed to fetch quantum jobs.")
149
146
 
150
147
 
148
+ @jobs_app.command(name="get")
149
+ def jobs_get(
150
+ job_id: str = typer.Argument(..., help="The ID of the job to get."),
151
+ fmt: bool = typer.Option(
152
+ True, "--no-fmt", help="Disable rich console formatting (output raw data)"
153
+ ),
154
+ ) -> None:
155
+ """Get a qBraid Quantum Job."""
156
+
157
+ def get_job():
158
+ from qbraid_core.services.quantum import QuantumClient
159
+
160
+ client = QuantumClient()
161
+ return client.get_job(job_id)
162
+
163
+ data: dict[str, Any] = run_progress_task(get_job)
164
+
165
+ print_formatted_data(data, fmt)
166
+
167
+
151
168
  if __name__ == "__main__":
152
169
  jobs_app()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qbraid-cli
3
- Version: 0.10.5
3
+ Version: 0.10.7
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,12 +29,12 @@ 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: click
33
- Requires-Dist: qbraid-core<0.2,>=0.1.40
32
+ Requires-Dist: click<=8.1.8
33
+ Requires-Dist: qbraid-core<0.2,>=0.1.41
34
34
  Provides-Extra: jobs
35
35
  Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
36
36
  Provides-Extra: envs
37
- Requires-Dist: qbraid-core[environments]; extra == "envs"
37
+ Requires-Dist: qbraid-core[environments]<0.2,>=0.1.41; extra == "envs"
38
38
  Provides-Extra: dev
39
39
  Requires-Dist: isort; extra == "dev"
40
40
  Requires-Dist: black; extra == "dev"
@@ -83,6 +83,7 @@ tests/configure/test_configure_prompt_for_config.py
83
83
  tests/configure/test_configure_set.py
84
84
  tests/configure/test_configure_validate_input.py
85
85
  tests/devices/__init__.py
86
+ tests/devices/test_devices_get.py
86
87
  tests/devices/test_devices_list.py
87
88
  tests/devices/test_devices_validations.py
88
89
  tests/envs/__init__.py
@@ -98,6 +99,7 @@ tests/files/test_files_commands.py
98
99
  tests/jobs/__init__.py
99
100
  tests/jobs/test_jobs_disable.py
100
101
  tests/jobs/test_jobs_enable.py
102
+ tests/jobs/test_jobs_get.py
101
103
  tests/jobs/test_jobs_list.py
102
104
  tests/jobs/test_jobs_state.py
103
105
  tests/jobs/test_jobs_toggle_braket_confirm.py
@@ -1,7 +1,7 @@
1
1
  typer>=0.12.1
2
2
  rich>=10.11.0
3
- click
4
- qbraid-core<0.2,>=0.1.40
3
+ click<=8.1.8
4
+ qbraid-core<0.2,>=0.1.41
5
5
 
6
6
  [dev]
7
7
  isort
@@ -10,7 +10,7 @@ pytest
10
10
  pytest-cov
11
11
 
12
12
  [envs]
13
- qbraid-core[environments]
13
+ qbraid-core[environments]<0.2,>=0.1.41
14
14
 
15
15
  [jobs]
16
16
  amazon-braket-sdk>=1.48.1