qi-compute-api-client 0.48.0__py3-none-any.whl → 0.49.0__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 qi-compute-api-client might be problematic. Click here for more details.
- qi2_shared/utils.py +13 -0
- {qi_compute_api_client-0.48.0.dist-info → qi_compute_api_client-0.49.0.dist-info}/METADATA +2 -2
- {qi_compute_api_client-0.48.0.dist-info → qi_compute_api_client-0.49.0.dist-info}/RECORD +5 -4
- {qi_compute_api_client-0.48.0.dist-info → qi_compute_api_client-0.49.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.48.0.dist-info → qi_compute_api_client-0.49.0.dist-info}/WHEEL +0 -0
qi2_shared/utils.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
import concurrent
|
|
3
|
+
from typing import Any, Coroutine
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def run_async(async_function: Coroutine[Any, Any, Any]) -> Any:
|
|
7
|
+
try:
|
|
8
|
+
_ = asyncio.get_running_loop()
|
|
9
|
+
except RuntimeError:
|
|
10
|
+
return asyncio.run(async_function)
|
|
11
|
+
|
|
12
|
+
with concurrent.futures.ThreadPoolExecutor() as executor:
|
|
13
|
+
return executor.submit(asyncio.run, async_function).result()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: qi-compute-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.49.0
|
|
4
4
|
Summary: An API client for the Compute Job Manager of Quantum Inspire.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Quantum Inspire
|
|
@@ -253,7 +253,7 @@ Authentication schemes defined for the API: <a id="user_bearer"></a>
|
|
|
253
253
|
|
|
254
254
|
- **Type**: OAuth
|
|
255
255
|
- **Flow**: accessCode
|
|
256
|
-
- **Authorization URL**: https://
|
|
256
|
+
- **Authorization URL**: https://quantum-inspire-staging.eu.auth0.com/authorize
|
|
257
257
|
- **Scopes**: N/A
|
|
258
258
|
|
|
259
259
|
<a id="backend"></a>
|
|
@@ -191,7 +191,8 @@ qi2_shared/hybrid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
191
191
|
qi2_shared/hybrid/quantum_interface.py,sha256=3_XynjDHwt96fOqYKjuv30I5QU8DE2vU03pT0jVAqOg,1447
|
|
192
192
|
qi2_shared/pagination.py,sha256=sypb9tSsi_7A1D9WoaUEuo7Xyfci8gG2QCX8XSIb7rI,1844
|
|
193
193
|
qi2_shared/settings.py,sha256=x2wNv8nzftMFb-5K7wKvhfJVxQn0YYlZ_Guu6DHm_qU,2384
|
|
194
|
-
|
|
195
|
-
qi_compute_api_client-0.
|
|
196
|
-
qi_compute_api_client-0.
|
|
197
|
-
qi_compute_api_client-0.
|
|
194
|
+
qi2_shared/utils.py,sha256=uD7Unuhoze3DWcz6NKvAmSMkiVO1vrlhO-zZEy1-89g,381
|
|
195
|
+
qi_compute_api_client-0.49.0.dist-info/LICENSE.md,sha256=aNrwtY65Glxv8qK2ZkJ_V4zq7SyY8CfLa-vo9wBpTQY,10723
|
|
196
|
+
qi_compute_api_client-0.49.0.dist-info/METADATA,sha256=puUN9NLuIZG2P-JotDjxVKn9snCzJESB5IQNJCHtFUw,29265
|
|
197
|
+
qi_compute_api_client-0.49.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
198
|
+
qi_compute_api_client-0.49.0.dist-info/RECORD,,
|
{qi_compute_api_client-0.48.0.dist-info → qi_compute_api_client-0.49.0.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|