Skip to content

Get Devices

netspresso.np_qai.base.NPQAIBase.get_devices(name='', os='', attributes=None)

Get a list of devices from the QAI Hub.

Parameters:

Name Type Description Default
name str

The name of the device to get.

''
os str

The OS of the device to get.

''
attributes Union[str, List[str]]

The attributes of the device to get.

None

Returns:

Type Description
List[Device]

List[Device]: Returns a list of device objects if successful.

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()