Skip to main content

Microsoft Azure IoT Device Library

Project description

azure-iot-device

Build Status

The Azure IoT Device SDK for Python enables Python developers to easily create IoT device solutions that seamlessly connect to the Azure IoT Hub ecosystem.

NOTE: 3.x.x is still in beta and APIs are subject to change until the release of 3.0.0

Installing the library

The Azure IoT Device library is available on PyPI:

pip install azure-iot-device==3.0.0b2

Python 3.7 or higher is required in order to use the library

Using the library

You can view the samples repository to see examples of SDK usage.

Full API documentation for this package is available via Microsoft Docs. Note that this documentation may currently be out of date as v3.x.x is still in preview at the time of this writing.

Features

:heavy_check_mark: feature available :heavy_multiplication_x: feature planned but not yet supported :heavy_minus_sign: no support planned*

*Features that are not planned may be prioritized in a future release, but are not currently planned

This library primarily uses the MQTT protocol.

IoTHubSession

Features Status Description
Authentication :heavy_check_mark: Connect your device to IoT Hub securely with supported authentication, including symmetric key, X-509 Self Signed, Certificate Authority (CA) Signed, and SASToken
Send device-to-cloud message :heavy_check_mark: Send device-to-cloud messages (max 256KB) to IoT Hub with the option to add custom properties.
Receive cloud-to-device messages :heavy_check_mark: Receive cloud-to-device messages and read associated custom and system properties from IoT Hub.
Device Twins :heavy_check_mark: IoT Hub persists a device twin for each device that you connect to IoT Hub. The device can perform operations like get twin tags, subscribe to desired properties.
Direct Methods :heavy_check_mark: IoT Hub gives you the ability to invoke direct methods on devices from the cloud. The SDK supports handler for method specific and generic operation.
Connection Status and Error reporting :heavy_check_mark: Error reporting for IoT Hub supported error code.
Connection Retry :heavy_check_mark: Dropped connections will be retried with a fixed 10 second interval by default. This functionality can be disabled if desired, and the interval can be configured
Upload file to Blob :heavy_multiplication_x: A device can initiate a file upload and notifies IoT Hub when the upload is complete.
Direct Invocation of Method on Modules :heavy_multiplication_x: Invoke method calls to another module using using the Edge Gateway.

ProvisioningSession

Features Status Description
TPM Individual Enrollment :heavy_multiplication_x: Provisioning via Trusted Platform Module.
X.509 Individual Enrollment :heavy_check_mark: Provisioning via X.509 root certificate. Please review the samples folder and this quickstart on how to create a device client.
X.509 Enrollment Group :heavy_check_mark: Provisioning via X.509 leaf certificate). Please review the samples folder on how to create a device client.
Symmetric Key Enrollment :heavy_check_mark: Provisioning via Symmetric key attestation). Please review the samples folder on how to create a device client.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

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-3.0.0b2.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

azure_iot_device-3.0.0b2-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file azure-iot-device-3.0.0b2.tar.gz.

File metadata

  • Download URL: azure-iot-device-3.0.0b2.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for azure-iot-device-3.0.0b2.tar.gz
Algorithm Hash digest
SHA256 7b0cada60576d470899b7580ae43c00a5c6d9dafcd36eecc427ad1eb8cb4e7d3
MD5 2086ef946814898538f9cd31c5b281fa
BLAKE2b-256 0df70a0d37321a8a33619928e83f9451e7d4ba54f898fd85f9945d3dfdf661d2

See more details on using hashes here.

File details

Details for the file azure_iot_device-3.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_iot_device-3.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 30cb1a6cc65599dfd1be21213ef91f937d13f082a137ec979edcae583561ecb5
MD5 ca2214c75a72aaa025ccc584d9ffc138
BLAKE2b-256 1b3d3f9bec7615f2d14d0c84cc5199acbc3845e1f888ae43c3b8ddd80823fd4d

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