Get Devices

get_devices(self, name: str = '', os: str = '', attributes: str | List[str] | None = None) List[Device]

Get a list of devices from the QAI Hub.

Parameters:
  • name – The name of the device to get.

  • os – The OS of the device to get.

  • attributes – The attributes of the device to get.

Returns:

Returns a list of device objects if successful.

Return type:

List[Device]

Note

For details, see get_devices in QAI Hub API.

Example

from netspresso import NPQAI

QAI_HUB_API_TOKEN = "YOUR_QAI_HUB_API_TOKEN"
np_qai = NPQAI(api_token=QAI_HUB_API_TOKEN)
devices = np_qai.get_devices()