QCS API Client
A client library for accessing the Rigetti QCS API
Usage
Synchronous Usage
from qcs_api_client.client.client import build_sync_client
from qcs_api_client.models import MyDatListReservationsResponseaModel
from qcs_api_client.operations.sync import list_reservations
with build_sync_client() as client:
response: ListReservationsResponse = list_reservations(client=client)
Asynchronous Usage
from qcs_api_client.client.client import build_async_client
from qcs_api_client.models import ListReservationsResponse
from qcs_api_client.operations.asyncio import list_reservations
async with build_async_client() as client:
response: ListReservationsResponse = await list_reservations(client=client)
- Every path/method combo becomes a Python function with type annotations.
- All path/query params, and bodies become method arguments.
- If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
- Any endpoint which did not have a tag will be in
qcs_api_client.api.default - If the API returns a response code that was not declared in the OpenAPI document, a
qcs_api_client.api.errors.ApiResponseErrorwil be raised with theresponseattribute set to thehttpx.Responsethat was received.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qcs-api-client-0.4.3.tar.gz
(25.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qcs-api-client-0.4.3.tar.gz.
File metadata
- Download URL: qcs-api-client-0.4.3.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.4 CPython/3.8.5 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
738529343ee00197827345bc69125b084fe55b55cdb5ceb0abfb69890ab9e836
|
|
| MD5 |
e355062b4031c8f32ee82683f6fd36d0
|
|
| BLAKE2b-256 |
a4dc01f8c3a364a743d9b0f047cec0afcb3469716fce1abb41bbc6e3e58fa6e7
|
File details
Details for the file qcs_api_client-0.4.3-py3-none-any.whl.
File metadata
- Download URL: qcs_api_client-0.4.3-py3-none-any.whl
- Upload date:
- Size: 67.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.4 CPython/3.8.5 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6257e5507ef829e5edfe124d6e578f58dd71d5453bcc3ba30f764315ea1079f8
|
|
| MD5 |
b74b506aba2b16a606041959b462c6fc
|
|
| BLAKE2b-256 |
d75ee7aa4c0e720afd6462b35371f53934966e543effe784e009c008617ef514
|