A library for interacting with Azure Sphere 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 microsoft-azure-sphere-deviceapi
.
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 microsoft_azure_sphere_deviceapi 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 Distributions
File details
Details for the file microsoft-azure-sphere-deviceapi-0.1.2.tar.gz
.
File metadata
- Download URL: microsoft-azure-sphere-deviceapi-0.1.2.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a19dad30da7c67a64c7b00ac39ef4bb587b199c524c8fe43d358727c2f9977f4 |
|
MD5 | 0b34170ecee85c322db5f01f1917bc62 |
|
BLAKE2b-256 | 9d8f6b432e68ccb072379c68fd5da5fddcb976dbb84ee8e91b6bf45219bd8bdc |
File details
Details for the file microsoft_azure_sphere_deviceapi-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: microsoft_azure_sphere_deviceapi-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.4 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 | 72c108192cae673281a4a3708b69d1cab9db2849f4641621654d5fba0bad6663 |
|
MD5 | e340f3ff71ce45d615ad9b80d21710c0 |
|
BLAKE2b-256 | 3a62fe52e44f688dce213e117e8e46c4fdc2173b0a5064f7dee34feb11f56b45 |
File details
Details for the file microsoft_azure_sphere_deviceapi-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: microsoft_azure_sphere_deviceapi-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 482ac6407be7ae3bf259a89ef8d761bc53d84871a881167a308fe84e93f0fffc |
|
MD5 | 172189e6f0c5eada206627fc8041ee4e |
|
BLAKE2b-256 | b5c23bd63285ef4d342cc9f5e42fbbf1d9904749f9e0121a4c7e7012fb42eea3 |