thanosql._base_client
Module Contents
Classes
Base client for accessing various ThanoSQL services. |
- class thanosql._base_client.ThanoSQLBaseClient(token: str, base_url: str, version: str)[source]
Base client for accessing various ThanoSQL services.
- token
Access token to be used in the request header.
- Type:
str
- base_url
Base URL of the ThanoSQL service.
- Type:
str
- version
Version of the API.
- Type:
str
- url
Base API URL of the ThanoSQL service that contains the base_url and version.
- Type:
str
- Raises:
If an invalid API token is provided.
If an operation is forbidden.
ThanoSQLAlreadyExistsError – If an object with the same name already exists.
ThanoSQLNotFoundError – If a requested object is not found.
ThanoSQLValueError – If input values are in incorrect format.
ThanoSQLInternalError – If an error happens while doing operations on the workspace or fetching data from the database.