qctrl-workflow-client 5.0.0__tar.gz → 5.1.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.
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/PKG-INFO +4 -4
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/pyproject.toml +8 -8
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/__init__.py +1 -1
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/api.py +11 -6
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/LICENSE +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/README.md +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/defaults.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/functions.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/products.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/__init__.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/base.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/local.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/settings.py +0 -0
- {qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/utils.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qctrl-workflow-client
|
|
3
|
-
Version: 5.
|
|
4
|
-
Summary: Q-CTRL Client
|
|
3
|
+
Version: 5.1.0
|
|
4
|
+
Summary: Q-CTRL Workflow Client
|
|
5
5
|
Home-page: https://q-ctrl.com
|
|
6
6
|
License: https://q-ctrl.com/terms
|
|
7
7
|
Keywords: black opal,boulder opal,fire opal,nisq,open controls,q control,q ctrl,q-control,q-ctrl,qcontrol,qctrl,quantum,quantum algorithms,quantum circuits,quantum coding,quantum coding software,quantum computing,quantum control,quantum control software,quantum control theory,quantum engineering,quantum error correction,quantum firmware,quantum fundamentals,quantum sensing,qubit,qudit
|
|
@@ -32,7 +32,7 @@ Requires-Dist: gql (>=3.4.0,<4.0.0)
|
|
|
32
32
|
Requires-Dist: importlib-metadata (>=6.8.0,<7.0.0)
|
|
33
33
|
Requires-Dist: packaging (>=23.1.0,<24.0.0)
|
|
34
34
|
Requires-Dist: qctrl-client (>=10.1.0,<11.0.0)
|
|
35
|
-
Requires-Dist: qctrl-commons (
|
|
35
|
+
Requires-Dist: qctrl-commons (==23.2.0)
|
|
36
36
|
Requires-Dist: requests (>=2.32.0,<3.0.0)
|
|
37
37
|
Requires-Dist: tenacity (>=8.1.0,<9.0.0)
|
|
38
38
|
Requires-Dist: tomli (>=2.0.1,<3.0.0)
|
|
@@ -40,7 +40,7 @@ Project-URL: Documentation, https://docs.q-ctrl.com
|
|
|
40
40
|
Project-URL: Facebook, https://www.facebook.com/qctrl
|
|
41
41
|
Project-URL: GitHub, https://github.com/qctrl
|
|
42
42
|
Project-URL: LinkedIn, https://www.linkedin.com/company/q-ctrl/
|
|
43
|
-
Project-URL:
|
|
43
|
+
Project-URL: X, https://x.com/qctrlHQ
|
|
44
44
|
Project-URL: YouTube, https://www.youtube.com/qctrl
|
|
45
45
|
Description-Content-Type: text/markdown
|
|
46
46
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "qctrl-workflow-client"
|
|
3
|
-
version = "5.
|
|
4
|
-
description = "Q-CTRL Client"
|
|
3
|
+
version = "5.1.0"
|
|
4
|
+
description = "Q-CTRL Workflow Client"
|
|
5
5
|
license = "https://q-ctrl.com/terms"
|
|
6
6
|
authors = ["Q-CTRL <support@q-ctrl.com>"]
|
|
7
7
|
maintainers = ["Q-CTRL <support@q-ctrl.com>"]
|
|
@@ -60,18 +60,18 @@ packages = [{ include = "qctrlworkflowclient" }]
|
|
|
60
60
|
[tool.poetry.urls]
|
|
61
61
|
LinkedIn = "https://www.linkedin.com/company/q-ctrl/"
|
|
62
62
|
Facebook = "https://www.facebook.com/qctrl"
|
|
63
|
-
|
|
63
|
+
X = "https://x.com/qctrlHQ"
|
|
64
64
|
YouTube = "https://www.youtube.com/qctrl"
|
|
65
65
|
GitHub = "https://github.com/qctrl"
|
|
66
66
|
|
|
67
67
|
[[tool.poetry.source]]
|
|
68
68
|
name = "PyPI"
|
|
69
|
-
priority = "
|
|
69
|
+
priority = "primary"
|
|
70
70
|
|
|
71
71
|
[[tool.poetry.source]]
|
|
72
|
-
name =
|
|
73
|
-
url =
|
|
74
|
-
priority = "
|
|
72
|
+
name = 'Artifactory'
|
|
73
|
+
url = 'https://qctrl.jfrog.io/artifactory/api/pypi/qctrl/simple/'
|
|
74
|
+
priority = "supplemental"
|
|
75
75
|
|
|
76
76
|
[tool.poetry.dependencies]
|
|
77
77
|
python = ">=3.9, <3.13"
|
|
@@ -81,7 +81,7 @@ gql = "^3.4.0"
|
|
|
81
81
|
tenacity = "^8.1.0"
|
|
82
82
|
requests = "^2.32.0"
|
|
83
83
|
packaging = "^23.1.0"
|
|
84
|
-
qctrl-commons = { version = "
|
|
84
|
+
qctrl-commons = { version = "23.2.0", source = "PyPI" }
|
|
85
85
|
qctrl-client = { version = "^10.1.0", source = "PyPI" }
|
|
86
86
|
|
|
87
87
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# distributed under the License is distributed on an "AS IS" BASIS. See the
|
|
12
12
|
# License for the specific language.
|
|
13
13
|
|
|
14
|
-
__version__ = "5.
|
|
14
|
+
__version__ = "5.1.0"
|
|
15
15
|
|
|
16
16
|
from .defaults import get_authenticated_client_for_product
|
|
17
17
|
from .functions import (
|
{qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/api.py
RENAMED
|
@@ -480,13 +480,15 @@ class ApiRouter(BaseRouter):
|
|
|
480
480
|
"""
|
|
481
481
|
return self.update_action_status(action)
|
|
482
482
|
|
|
483
|
-
def get_result(
|
|
483
|
+
def get_result(
|
|
484
|
+
self, action: Action, revoke_on_interrupt: bool = True
|
|
485
|
+
) -> DecodedResult:
|
|
484
486
|
"""
|
|
485
487
|
Return the result of the action.
|
|
486
488
|
"""
|
|
487
|
-
return self._fetch_action(action).result
|
|
489
|
+
return self._fetch_action(action, revoke_on_interrupt).result
|
|
488
490
|
|
|
489
|
-
def _fetch_action(self, action: Action) -> Any:
|
|
491
|
+
def _fetch_action(self, action: Action, revoke_on_interrupt: bool = True) -> Any:
|
|
490
492
|
"""
|
|
491
493
|
Fetch the action from the server. If the action
|
|
492
494
|
has not finished, the API will be polled until it has.
|
|
@@ -497,9 +499,12 @@ class ApiRouter(BaseRouter):
|
|
|
497
499
|
if not action.is_finished():
|
|
498
500
|
try:
|
|
499
501
|
action = self._poll_for_completion(action)
|
|
500
|
-
except KeyboardInterrupt:
|
|
501
|
-
|
|
502
|
-
|
|
502
|
+
except KeyboardInterrupt as exc:
|
|
503
|
+
if revoke_on_interrupt:
|
|
504
|
+
self._revoke_action(action)
|
|
505
|
+
action = self._poll_for_completion(action)
|
|
506
|
+
else:
|
|
507
|
+
raise KeyboardInterrupt from exc
|
|
503
508
|
|
|
504
509
|
if action.is_failed():
|
|
505
510
|
self._settings.event_dispatch("action.failure", action=action)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/functions.py
RENAMED
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/__init__.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/base.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-5.0.0 → qctrl_workflow_client-5.1.0}/qctrlworkflowclient/router/local.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|