Skip to main content

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.

Note that this SDK is currently in preview, and is subject to change.

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 3.4 NO 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
  • Legacy scenarios for Python 2.7 and 3.4

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-iot-device-2.0.0.tar.gz (186.7 kB view details)

Uploaded Source

Built Distribution

azure_iot_device-2.0.0-py2.py3-none-any.whl (267.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file azure-iot-device-2.0.0.tar.gz.

File metadata

  • Download URL: azure-iot-device-2.0.0.tar.gz
  • Upload date:
  • Size: 186.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for azure-iot-device-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a8e73c91187920bc47a62e4d8d1bc8cfcf4db5b5b200a4ad797b921db900dafa
MD5 6893c35d8b9d9f68e318a2e527918b8f
BLAKE2b-256 6ed5e9cb355d1c3d1434950e2844d18781292c72582ed6ed380c357705073f6c

See more details on using hashes here.

File details

Details for the file azure_iot_device-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: azure_iot_device-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 267.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for azure_iot_device-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42306a01eca0108ef4dc4711021e0d0c279ad13c6098c1a4705392fd51f25ea1
MD5 f8f322089b750386ddc3f6b74eef7787
BLAKE2b-256 d652d33fda28031546fb6eae4a5c364411177ea7f42153e59644698c5f5f5c1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page