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.

Requirements

The Azure IoT Device SDK for Python requires Python 3.6+

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


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

Uploaded Source

Built Distribution

azure_iot_device-2.11.0-py3-none-any.whl (164.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azure-iot-device-2.11.0.tar.gz
  • Upload date:
  • Size: 126.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for azure-iot-device-2.11.0.tar.gz
Algorithm Hash digest
SHA256 3f2079a35d1f81b3a9147bafe2904a19d20446a9554d42fb574ee1151a1829e9
MD5 ae2c624aff1ca7e2c73b560246f655d2
BLAKE2b-256 a3295c21718c39db4d8b1c6022b87f5a03786471f50517f52e858123b01fdc34

See more details on using hashes here.

File details

Details for the file azure_iot_device-2.11.0-py3-none-any.whl.

File metadata

  • Download URL: azure_iot_device-2.11.0-py3-none-any.whl
  • Upload date:
  • Size: 164.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for azure_iot_device-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97e09afbab01954f832f9a1a406f36718adb66cd35e25b7ae1d347dfe54a0812
MD5 78c3e14a49fcceb1d560c48c5735c5b6
BLAKE2b-256 d78221b7f7f1264f90338c70ba4a4670d3c4978f80a47b208dce79dac622de09

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