一个用于通过内置REST服务器与Azure Sphere设备交互的库。
项目描述
Microsoft Azure Sphere Device REST APIs for Python
Microsoft Azure Sphere Device REST APIs for Python允许用户通过REST API与Azure Sphere设备交互。
安装
您可以在PyPi上找到Microsoft Azure Sphere Device REST APIs for Python。
- 如果您尚未安装,请安装和/或升级您的Python环境中的pip到最新版本。
- 运行
pip install azuresphere_device_api
。
用法
在开始使用适用于Python的Microsoft Azure Sphere Device REST API之前,您必须安装Azure Sphere SDK。
- 在Windows上安装Azure Sphere SDK,请遵循Windows快速入门。
- 在Linux上安装Azure Sphere SDK,请遵循Linux快速入门。
示例
display_ip_deviceid示例获取已连接设备的列表,显示设备IP地址和设备ID。
活动设备IP地址
默认情况下,此包将针对IP地址为192.168.35.2
的Azure Sphere设备。要更改活动Azure Sphere设备,请调用以下API中的set_active_device_ip_address
:
from azuresphere_device_api import devices
devices.set_active_device_ip_address("<Device_Ip_Address")
文档
适用于Python的Microsoft Azure Sphere Device REST API的文档可在Azure Sphere Device REST API文档中找到。
支持的主机操作系统
- Windows 10和11
- Ubuntu 18.04、20.04、22.04
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
azuresphere-device-api-1.1.1.tar.gz (17.9 kB 查看哈希)
构建分布
关闭
azuresphere-device-api-1.1.1.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b554d2f96fd24a9eb72d7857c350e854c13201a42476ca71e1243481e2f16de3 |
|
MD5 | b34b60b0213a3143771cdcc1e685d648 |
|
BLAKE2b-256 | ef7f173a252d9ab0a7e6f2a39c599a252b4673e48f29e8aced21150bea3d0172 |
关闭
azuresphere_device_api-1.1.1-py3-none-any.whl的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5fde24a526eb48da1e32f6c41971d7e722332ec76fe6cc364f5e9a2ea6875f0e |
|
MD5 | 22944b1c1276421f1dd44f6666929602 |
|
BLAKE2b-256 | 9109f7faa954f1cb18a93913c01a9cb703cfc93f81554940871d3c1063e7b96f |