A library for interacting with Azure Sphere devices using the inbuilt REST server.
Project description
Microsoft Azure Sphere Device REST APIs for Python
Microsoft Azure Sphere Device REST APIs for Python enables users to interact with an Azure Sphere device using REST APIs.
Installation
You can find Microsoft Azure Sphere Device REST APIs for Python on PyPi.
- If you haven't already, install and/or upgrade the pip of your Python environment to a recent version.
- Run
pip install azuresphere_device_api.
Usage
Before using Microsoft Azure Sphere Device REST APIs for Python, you must install the Azure Sphere SDK.
- To install the Azure Sphere SDK on Windows, follow the Windows Quickstart.
- To install the Azure Sphere SDK on Linux, follow the Linux Quickstart.
Sample
The display_ip_deviceid sample gets the list of attached devices, displays the device IP address, and device ID.
Active device IP address
By default, this package will target Azure Sphere devices with IP address 192.168.35.2. To change the active Azure Sphere device, call set_active_device_ip_address API as below:
from azuresphere_device_api import devices
devices.set_active_device_ip_address("<Device_Ip_Address")
Documentation
Microsoft Azure Sphere Device REST APIs for Python documentation is available at Azure Sphere Device REST APIs Docs.
Supported host operating systems
- Windows 10 and 11
- Ubuntu 18.04, 20.04, 22.04
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azuresphere-device-api-1.1.1.tar.gz.
File metadata
- Download URL: azuresphere-device-api-1.1.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b554d2f96fd24a9eb72d7857c350e854c13201a42476ca71e1243481e2f16de3
|
|
| MD5 |
b34b60b0213a3143771cdcc1e685d648
|
|
| BLAKE2b-256 |
ef7f173a252d9ab0a7e6f2a39c599a252b4673e48f29e8aced21150bea3d0172
|
File details
Details for the file azuresphere_device_api-1.1.1-py3-none-any.whl.
File metadata
- Download URL: azuresphere_device_api-1.1.1-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fde24a526eb48da1e32f6c41971d7e722332ec76fe6cc364f5e9a2ea6875f0e
|
|
| MD5 |
22944b1c1276421f1dd44f6666929602
|
|
| BLAKE2b-256 |
9109f7faa954f1cb18a93913c01a9cb703cfc93f81554940871d3c1063e7b96f
|