Nexigon Hub Python SDK¶
The nexigon-hub-sdk package provides a typed Python client for the
Nexigon Hub IoT device management API.
Installation¶
Or with uv:
Features¶
- Typed actions -- every API operation is a Pydantic model with full type annotations, giving you IDE autocompletion and static type checking out of the box.
- Sync and async --
Clientfor synchronous code,AsyncClientforasyncio. - Device commands -- invoke on-demand commands on connected devices over WebSocket, with optional real-time log streaming.
Quick example¶
from nexigon_hub_sdk import Client
from nexigon_hub_sdk.api_types import projects
with Client("https://hub.example.com", token="your-api-token") as client:
output = client.execute(projects.QueryProjectDevicesAction(project_id="p_..."))
for device in output.devices:
print(f"{device.device_id}: connected={device.is_connected}")
See the Quick Start guide for a more complete walkthrough.