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
Our SDK makes use of docstrings which means you cand find API documentation directly through Python with use of the help command:
>>> 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.6.0.tar.gz
.
File metadata
- Download URL: azure-iot-device-2.6.0.tar.gz
- Upload date:
- Size: 119.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a3a50f86119744f6d059996df0da03152164d7a17ef6f80e6472a3e003a13df |
|
MD5 | fad698d6b26434b96d7b40f2db878e06 |
|
BLAKE2b-256 | e3ddb2a49db8dd5d8a4eed637fccba14ef28926ef42c339be4df7d9452e06b2e |
File details
Details for the file azure_iot_device-2.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: azure_iot_device-2.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 159.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f245336fa247568f267a7f72fc71964ee3d4727e2f3233ef1c435d4bc7d052fd |
|
MD5 | 407d045d8d5bc05108919241821a39aa |
|
BLAKE2b-256 | 0885a5ae6090a935ac7bfc8bb2c02e4a09fa51ef7710d177cbf0c031c776b63a |