qbraid-core 0.1.0.dev1__tar.gz → 0.1.0.dev2__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 (70) hide show
  1. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/PKG-INFO +1 -1
  2. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/pyproject.toml +1 -1
  3. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/_version.py +2 -2
  4. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/quantum/proxy.py +11 -9
  5. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core.egg-info/PKG-INFO +1 -1
  6. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  7. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  8. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  9. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/workflows/docs.yml +0 -0
  10. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/workflows/format.yml +0 -0
  11. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/workflows/main.yml +0 -0
  12. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/workflows/publish.yml +0 -0
  13. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.github/workflows/test-publish.yml +0 -0
  14. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.gitignore +0 -0
  15. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/.readthedocs.yaml +0 -0
  16. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/LICENSE +0 -0
  17. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/MANIFEST.in +0 -0
  18. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/README.md +0 -0
  19. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/Makefile +0 -0
  20. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/cards/jupyter.png +0 -0
  21. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/cards/python.png +0 -0
  22. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/cards/terminal.png +0 -0
  23. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/css/custom.css +0 -0
  24. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/css/s4defs-roles.css +0 -0
  25. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/favicon.ico +0 -0
  26. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/_static/logo.png +0 -0
  27. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/api/qbraid_core.rst +0 -0
  28. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/api/qbraid_core.services.rst +0 -0
  29. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/api/qbraid_core.system.rst +0 -0
  30. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/conf.py +0 -0
  31. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/index.rst +0 -0
  32. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/docs/make.bat +0 -0
  33. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/__init__.py +0 -0
  34. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/client.py +0 -0
  35. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/exceptions.py +0 -0
  36. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/registry.py +0 -0
  37. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/retry.py +0 -0
  38. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/__init__.py +0 -0
  39. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/__init__.py +0 -0
  40. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/client.py +0 -0
  41. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/create.py +0 -0
  42. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/exceptions.py +0 -0
  43. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/paths.py +0 -0
  44. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/state.py +0 -0
  45. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/environments/validate.py +0 -0
  46. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/quantum/__init__.py +0 -0
  47. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/quantum/adapter.py +0 -0
  48. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/quantum/client.py +0 -0
  49. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/services/quantum/exceptions.py +0 -0
  50. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/session.py +0 -0
  51. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/__init__.py +0 -0
  52. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/exceptions.py +0 -0
  53. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/executables.py +0 -0
  54. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/generic.py +0 -0
  55. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/packages.py +0 -0
  56. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core/system/threader.py +0 -0
  57. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core.egg-info/SOURCES.txt +0 -0
  58. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core.egg-info/dependency_links.txt +0 -0
  59. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core.egg-info/requires.txt +0 -0
  60. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/qbraid_core.egg-info/top_level.txt +0 -0
  61. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/setup.cfg +0 -0
  62. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/__init__.py +0 -0
  63. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/conftest.py +0 -0
  64. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/fixtures/__init__.py +0 -0
  65. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/fixtures/environments.py +0 -0
  66. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/test_client.py +0 -0
  67. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/test_environments.py +0 -0
  68. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/test_session.py +0 -0
  69. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tests/test_system.py +0 -0
  70. {qbraid-core-0.1.0.dev1 → qbraid-core-0.1.0.dev2}/tools/verify_headers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qbraid-core
3
- Version: 0.1.0.dev1
3
+ Version: 0.1.0.dev2
4
4
  Summary: Python library with core abstractions for software development in the qBraid ecosystem.
5
5
  Author-email: qBraid Development Team <contact@qbraid.com>
6
6
  License: Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qbraid-core"
7
- version = "0.1.0.dev1"
7
+ version = "0.1.0.dev2"
8
8
  authors = [
9
9
  {name = "qBraid Development Team", email = "contact@qbraid.com"},
10
10
  ]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.dev1+g2b36ca5'
16
- __version_tuple__ = version_tuple = (0, 1, 'dev1', 'g2b36ca5')
15
+ __version__ = version = '0.1.dev1+g2ea1f2d'
16
+ __version_tuple__ = version_tuple = (0, 1, 'dev1', 'g2ea1f2d')
@@ -22,7 +22,7 @@ SUPPORTED_QJOB_LIBS = ["braket"]
22
22
 
23
23
  def _check_proxy(
24
24
  proxy_spec: Tuple[str, ...], slug_path: Optional[Path] = None
25
- ) -> Tuple[bool, bool]:
25
+ ) -> Tuple[bool, bool, Path]:
26
26
  """
27
27
  Checks if the specified proxy file exists and contains the string 'qbraid'.
28
28
 
@@ -32,8 +32,9 @@ def _check_proxy(
32
32
  slug_path (optional, Path): The base path to prepend to the 'pyenv' directory.
33
33
 
34
34
  Returns:
35
- A tuple of two booleans: The first indicates whether the specified proxy file exists;
36
- the second, if the file exists, is True if it contains 'qbraid', False otherwise.
35
+ A tuple of two booleans and sitepackages path: The first bool indicates whether the specified proxy file exists;
36
+ the second bool, if the file exists, is True if it contains 'qbraid', False otherwise. The sitepackages path gives
37
+ the location of the site-packages directory where the proxy file is located.
37
38
  """
38
39
  try:
39
40
  if slug_path is None:
@@ -43,26 +44,26 @@ def _check_proxy(
43
44
  site_packages_path = get_venv_site_packages_path(slug_path / "pyenv")
44
45
  except QbraidException as err:
45
46
  logger.debug(err)
46
- return False, False
47
+ return False, False, site_packages_path
47
48
 
48
49
  target_file_path = site_packages_path.joinpath(*proxy_spec)
49
50
 
50
51
  if not target_file_path.exists():
51
- return False, False
52
+ return False, False, site_packages_path
52
53
 
53
54
  try:
54
55
  with target_file_path.open("r", encoding="utf-8") as file:
55
56
  for line in file:
56
57
  if "qbraid" in line:
57
58
  return True, True, site_packages_path
58
- return True, False
59
+ return True, False, site_packages_path
59
60
  except Exception as err: # pylint: disable=broad-exception-caught
60
61
  logger.debug("Unexpected error checking qBraid proxy: %s", err)
61
62
 
62
- return True, False
63
+ return True, False, site_packages_path
63
64
 
64
65
 
65
- def quantum_lib_proxy_state(device_lib: str) -> Dict[str, Union[str, bool]]:
66
+ def quantum_lib_proxy_state(device_lib: str, **kwargs) -> Dict[str, Union[str, bool]]:
66
67
  """Checks if qBraid Quantum Jobs are supported and if so, checks whether they are enabled.
67
68
  Returns dictionary providing information about the state of qBraid Quantum Jobs support
68
69
  and configuration for the given quantum device library.
@@ -91,11 +92,12 @@ def quantum_lib_proxy_state(device_lib: str) -> Dict[str, Union[str, bool]]:
91
92
  if device_lib == "braket":
92
93
  proxy_lib = "botocore"
93
94
  proxy_spec = (proxy_lib, "httpsession.py")
94
- supported, enabled = _check_proxy(proxy_spec)
95
+ supported, enabled, path = _check_proxy(proxy_spec, **kwargs)
95
96
 
96
97
  # add more device libraries here as needed
97
98
 
98
99
  state["proxy_lib"] = proxy_lib
99
100
  state["supported"] = supported
100
101
  state["enabled"] = enabled
102
+ state["path"] = str(path)
101
103
  return state
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qbraid-core
3
- Version: 0.1.0.dev1
3
+ Version: 0.1.0.dev2
4
4
  Summary: Python library with core abstractions for software development in the qBraid ecosystem.
5
5
  Author-email: qBraid Development Team <contact@qbraid.com>
6
6
  License: Proprietary