cads_api_client.Results#

class cads_api_client.Results#

Bases: ApiResponse

A class to interact with the results of a job.

download(target=None)#

Download the results.

Parameters:

target (str or None) – Target path. If None, download to the working directory.

Returns:

Path to the retrieved file.

Return type:

str

property asset: dict[str, Any]#

Asset dictionary.

Return type:

dict[str,Any]

property content_length: int#

File size in Bytes.

Return type:

int

property content_type: str#

File MIME type.

Return type:

int

property json: dict[str, Any]#

Content of the response.

Return type:

dict[str,Any]

property location: str#

File location.

Return type:

str

property url: str#

URL.

Return type:

str