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.

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


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.1.2.tar.gz (106.5 kB view details)

Uploaded Source

Built Distribution

azure_iot_device-2.1.2-py2.py3-none-any.whl (149.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: azure-iot-device-2.1.2.tar.gz
  • Upload date:
  • Size: 106.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for azure-iot-device-2.1.2.tar.gz
Algorithm Hash digest
SHA256 4b8bc92ba8d5a1eaf401e2ef382dd1c55e157b2a4588b43bd4966d456d13c0d7
MD5 300488e2ad8359bf19c2c83c36eee03d
BLAKE2b-256 f3677f201efad7fed9aebb91bd6f5868befcb1464892f8c6ca80894e4265e034

See more details on using hashes here.

File details

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

File metadata

  • Download URL: azure_iot_device-2.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 149.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for azure_iot_device-2.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b8303eeecd729b1b6c05e32bb63a9630db539469d216fb9f900e471f1d5d0a49
MD5 f9ad81fd60498eb6ef425d7949e9b1e9
BLAKE2b-256 2ea9d4f63b7dd17e5f8d0abbfcfb860305e17c240fac47b005fa12f5064db2e3

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