A library for interacting with Azure Sphere devices using the inbuilt REST server.
Project description
Microsoft Azure Sphere Device REST APIs for Python
Notice to users: This is a pre v1.0 package - there may be changes over the coming weeks which may include package name and API. This README will be updated to indicate any changes.
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
.
Versions
This library follows Semantic Versioning.
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 and 20.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
File details
Details for the file azuresphere-device-api-0.2.4.tar.gz
.
File metadata
- Download URL: azuresphere-device-api-0.2.4.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943288836d132538ab9eb7c829e0e669b08bcca35265480d800ce1bc9c996fed |
|
MD5 | 9077263f572472490715660a2740444f |
|
BLAKE2b-256 | 9b4b727213447fbc116ed9cf10b34f99c7c587f07316743a78ccb6883cf94fde |
File details
Details for the file azuresphere_device_api-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: azuresphere_device_api-0.2.4-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb7c0f8f34534c016a04f7dd6088e4ad13da842528c5800adb427826862c60f |
|
MD5 | ebd3df4cf425da05b533ef3b4d6790e0 |
|
BLAKE2b-256 | 98edf2bcf884fcf22617ad7c539e5922501191391151c755d11979cccdf3f0e5 |