Metadata-Version: 2.1
Name: qcs-api-client
Version: 0.4.3
Summary: A client library for accessing the Rigetti QCS API
Requires-Python: >=3.6,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: attrs (>=20.1.0,<21.0.0)
Requires-Dist: httpx (>=0.15.0,<0.16.0)
Requires-Dist: iso8601 (>=0.1.13,<0.2.0)
Requires-Dist: pydantic (>=1.7.2,<2.0.0)
Requires-Dist: pyjwt (>=1.7.1,<2.0.0)
Requires-Dist: python-dateutil (>=2.8.1,<3.0.0)
Requires-Dist: retrying (>=1.3.3,<2.0.0)
Requires-Dist: rfc3339 (>=6.2,<7.0)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Description-Content-Type: text/markdown

# QCS API Client

A client library for accessing the Rigetti QCS API

## Usage

### Synchronous Usage

```python
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

```python
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)
```

1. Every path/method combo becomes a Python function with type annotations. 
2. All path/query params, and bodies become method arguments.
3. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
4. Any endpoint which did not have a tag will be in `qcs_api_client.api.default`
5. If the API returns a response code that was not declared in the OpenAPI document, a 
    `qcs_api_client.api.errors.ApiResponseError` wil be raised 
    with the `response` attribute set to the `httpx.Response` that was received.

