Skip to content

Client

Synchronous client

Client

Client(base_url, *, token)

Bases: _SyncExecuteMixin

Synchronous Nexigon Hub API client.

invoke_device_command

invoke_device_command(
    device_id,
    command,
    *,
    input=None,
    stream_log=False,
    timeout_secs=None,
    on_log=None,
)

Invoke a command on a device and return its completion data.

stream_device_command

stream_device_command(
    device_id,
    command,
    *,
    input=None,
    stream_log=False,
    timeout_secs=None,
)

Stream raw device command frames as a context-managed iterator.

close

close()

Close the underlying HTTP connection.

Asynchronous client

AsyncClient

AsyncClient(base_url, *, token)

Bases: _AsyncExecuteMixin

Asynchronous Nexigon Hub API client.

invoke_device_command async

invoke_device_command(
    device_id,
    command,
    *,
    input=None,
    stream_log=False,
    timeout_secs=None,
    on_log=None,
)

Invoke a command on a device and return its completion data.

stream_device_command

stream_device_command(
    device_id,
    command,
    *,
    input=None,
    stream_log=False,
    timeout_secs=None,
)

Stream raw device command frames as an async context-managed iterator.

aclose async

aclose()

Close the underlying HTTP connection.