Skip to content

Responses

spnkr.responses

Wrappers for API responses.

ImageResponse

Bases: _BaseResponse

ClientResponse wrapper for an image HTTP response.

JsonResponse dataclass

Bases: _BaseResponse, Generic[T]

ClientResponse wrapper for a JSON HTTP response.

json(**kwargs) async

Read the response body as JSON.

Keyword arguments are passed to aiohttp.ClientResponse.json.

parse(**kwargs) async

Parse the response data into the appropriate response model.

Keyword arguments are passed to aiohttp.ClientResponse.json.