aito.v1.Client

aito.v1.Client

The v1 client under its version-neutral name. AitoClient remains an alias.

Methods

async_request(session, *[, method, ...])

execute a request asynchronously using aiohttp ClientSession

async_requests(methods, endpoints, queries)

batch_requests(requests[, ...])

execute a batch of requests asynchronously

bounded_async_request(semaphore, *args, **kwargs)

bounded concurrent requests with asyncio semaphore

request(*[, method, endpoint, query, ...])

make a request to an Aito API endpoint The client returns a JSON response if the request succeed and a RequestError if the request fails

Attributes

headers

the headers that will be used to send a request to the Aito instance

is_multitenant

Check if the client is connected to a multitenant instance.