Microsoft Azure IoT Device Library
Project description
Azure IoT Device SDK
The Azure IoT Device SDK for Python provides functionality for communicating with the Azure IoT Hub for both Devices and Modules.
Azure IoT Device Features
The SDK provides the following clients:
-
Provisioning Device Client
- Creates a device identity on the Azure IoT Hub
-
IoT Hub Device Client
- Send telemetry messages to Azure IoT Hub
- Receive Cloud-to-Device (C2D) messages from the Azure IoT Hub
- Receive and respond to direct method invocations from the Azure IoT Hub
-
IoT Hub Module Client
- Supports Azure IoT Edge Hub and Azure IoT Hub
- Send telemetry messages to a Hub or to another Module
- Receive Input messages from a Hub or other Modules
- Receive and respond to direct method invocations from a Hub or other Modules
These clients are available with an asynchronous API, as well as a blocking synchronous API for compatibility scenarios. We recommend you use Python 3.7+ and the asynchronous API.
Python Version | Asynchronous API | Synchronous API |
---|---|---|
Python 3.5.3+ | YES | YES |
Python 2.7 | NO | YES |
Installation
pip install azure-iot-device
Device Samples
Check out the samples repository for example code showing how the SDK can be used in a variety of scenarios, including:
- Sending multiple telemetry messages at once.
- Receiving Cloud-to-Device messages.
- Using Edge Modules with the Azure IoT Edge Hub.
- Send and receive updates to device twin
- Receive invocations to direct methods
- Register a device with the Device Provisioning Service
Getting help and finding API docs
API documentation for this package is available via Microsoft Docs
Additionally, the SDK makes use of docstrings which means you can find API documentation directly through Python with use of the help command:
e.g.
>>> from azure.iot.device import IoTHubDeviceClient
>>> help(IoTHubDeviceClient)
Project details
Release history Release notifications | RSS feed
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 azure-iot-device-2.8.0.tar.gz
.
File metadata
- Download URL: azure-iot-device-2.8.0.tar.gz
- Upload date:
- Size: 125.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d24486db3a05fdcf84dbed6c4d6ed8b1e3d9e2b625deb3f9073204a7b6c3ac |
|
MD5 | 46f5fbacd0066dd5abd0a7347f3bce6f |
|
BLAKE2b-256 | 8ea535c47c6754a78dc98a384b708f05ed8b791c36e869b19a96ff3754711d9c |
File details
Details for the file azure_iot_device-2.8.0-py2.py3-none-any.whl
.
File metadata
- Download URL: azure_iot_device-2.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 164.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f649eb08e580530ca09800004f1f12587ee6a5a7eade1e0a4f772eb7029fe3 |
|
MD5 | 790c41936d671fbef3240196ce2bde34 |
|
BLAKE2b-256 | 5ecb4b3fac0c86f7941a84d882d768472135120d7e4611f21124180fd20a84f7 |