qibo_client package¶
Submodules¶
qibo_client.config module¶
This module implements some constants and custom exceptions
qibo_client.qibo_client module¶
The module implementing the TIIProvider class.
- qibo_client.qibo_client.wait_for_response_to_get_request(url: str) Response ¶
Wait until the server completes the computation and return the response.
- Parameters:
url (str) – the endpoint to make the request
- Returns:
the response of the get request
- Return type:
requests.models.Response
- qibo_client.qibo_client.check_response_has_keys(response: Response, keys: List[str])¶
Check that the response body contains certain keys.
- Parameters:
response (requests.models.Response) – the server response
keys (List[str]) – the keys to be checked in the response body
- Raises:
MalformedResponseError – if the server response does not contain all the expected keys.
- class qibo_client.qibo_client.Client(token: str, url: str = 'https://cloud.qibo.science/')¶
Bases:
object
Class to manage the interaction with the remote server.
- check_client_server_qibo_versions()¶
Check that client and server qibo package installed versions match.
Raise assertion error if the two versions are not the same.
Module contents¶
The qibo_tii_provider package