qci_client
qci-client package.
- class qci_client.JobStatus(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
Enumeration of all jobs statuses, where values match jobs API values.
- CANCELLED = 'CANCELLED'
- COMPLETED = 'COMPLETED'
- ERRORED = 'ERRORED'
- QUEUED = 'QUEUED'
- RUNNING = 'RUNNING'
- SUBMITTED = 'SUBMITTED'
- qci_client.QciClient
- alias of
OptimizationClient
qci_client.utilities
Package-wide utilities.
- qci_client.utilities.log_to_console(*, log: str, verbose: bool = True) → None[source]
- If verbose is true, then print log with timestamp prefix.
- qci_client.utilities.raise_for_status(*, response: Response) → None[source]
Wrap requests method of same name to include response text in exception message.
- Parameters:
- response – a response from any API call using the requests package