Microsoft Azure Device Update Client Library for Python
Project description
Azure Device Update for IoT Hub client library for Python
The library provides access to the Device Update for IoT Hub service that enables customers to publish updates for their IoT devices to the cloud, and then deploy these updates to their devices (approve updates to groups of devices managed and provisioned in IoT Hub).
Source code | Package (PyPI) | Product documentation
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Microsoft Azure Subscription: To call Microsoft Azure services, you need to create an Azure subscription
- Device Update for IoT Hub instance
- Azure IoT Hub instance
- Python 3.6 or later is required to use this package.
Install the package
Install the Device Update for IoT Hub client library for Python with pip:
pip install azure-iot-deviceupdate
Key concepts
Device Update for IoT Hub is a managed service that enables you to deploy over-the-air updates for your IoT devices. The client library has one main component named DeviceUpdateClient. The component allows you to access all three main client services:
- UpdatesOperations: update management (import, enumerate, delete, etc.)
- ManagementOperations: deployment management (manage devices and deployments)
You can learn more about Device Update for IoT Hub by visiting Device Update for IoT Hub.
Examples
You can familiarize yourself with different APIs using Samples.
Troubleshooting
The Device Update for IoT Hub client will raise exceptions defined in Azure Core.
Next steps
Get started with our Samples.
Contributing
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
1.0.0b2 (2022-01-25)
Features Added
- Added DeviceManagementOperations
- Added DeviceUpdateOperations
- Added operation
send_request
to send customized http request conveniently - Added
client.device_management
Breaking Changes
- Removed all models
- Removed DeploymentsOperations
- Removed UpdateOperations
- Dropped support for Python2.7(https://github.com/Azure/azure-sdk-for-python#disclaimer)
- Parameter
account_endpoint
of DeviceUpdateClient is renamed toendpoint
- Renamed
client.updates
toclient.device_update
- Removed
client.devices
- Removed
client.deployments
- Renamed UpdatesOperations.get_update to DeviceUpdateOperations.get_update
- Renamed UpdatesOperations.delete_update to DeviceUpdateOperations.begin_delete_update
- Renamed UpdatesOperations.get_providers to DeviceUpdateOperations.list_providers
- Renamed UpdatesOperations.get_names to DeviceUpdateOperations.list_names
- Renamed UpdatesOperations.get_versions to DeviceUpdateOperations.list_versions
- Renamed UpdatesOperations.get_file to DeviceUpdateOperations.get_file
- Renamed UpdatesOperations.get_files to DeviceUpdateOperations.list_files
- Renamed UpdatesOperations.get_operation to DeviceUpdateOperations.get_operation
- Renamed UpdatesOperations.get_operations to DeviceUpdateOperations.list_operations
- Renamed DevicesOperations.get_all_device_classes to DeviceManagementOperations.list_device_classes
- Renamed DevicesOperations.get_device_class to DeviceManagementOperations.get_device_class
- Renamed DevicesOperations.get_device_class_device_ids to DeviceManagementOperations.
- Renamed DevicesOperations.list_devices to DeviceManagementOperations.list_devices
- Renamed DevicesOperations.list_devices to DeviceManagementOperations.
- Renamed DevicesOperations.get_all_device_tags to DeviceManagementOperations.list_device_tags
- Renamed DevicesOperations.get_all_groups to DeviceManagementOperations.list_groups
- Renamed DevicesOperations.get_group to DeviceManagementOperations.get_group
- Renamed DevicesOperations.create_or_update_group to DeviceManagementOperations.create_or_update_group
- Renamed DevicesOperations.delete_group to DeviceManagementOperations.delete_group
- Renamed DevicesOperations.get_group_update_compliance to DeviceManagementOperations.get_group_update_compliance
- Renamed DevicesOperations.get_group_best_updates to DeviceManagementOperations.list_best_updates_for_group
- Renamed DeploymentsOperations.get_deployment_status to DeviceManagementOperations.get_deployment_status
- Renamed DeploymentsOperations.create_or_update_deployment to DeviceManagementOperations.create_or_update_deployment
- Renamed DeploymentsOperations.delete_deployment to DeviceManagementOperations.delete_deployment
- Renamed DeploymentsOperations.get_deployment_devices to DeviceManagementOperations.list_deployment_devices
1.0.0b1 (2021-03-03)
- This is the initial release of Azure Device Update for IoT Hub library.
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-deviceupdate-1.0.0b2.zip
.
File metadata
- Download URL: azure-iot-deviceupdate-1.0.0b2.zip
- Upload date:
- Size: 55.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b525d152b8d467e75f5ee36cb738cbe9a41cbc23fbd4549f1918662fcc9f7556 |
|
MD5 | a93dddb952737ccb812992500ab6c6a2 |
|
BLAKE2b-256 | e6fe0f51104c6d1f2cbd3c950f8f9f1dbf385d488673fcec8d708be2a37e9d2a |
File details
Details for the file azure_iot_deviceupdate-1.0.0b2-py3-none-any.whl
.
File metadata
- Download URL: azure_iot_deviceupdate-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59e953b655ca74b98f313ae47f7c7e695d35afe7b1fad87c0a01be99e5248bb |
|
MD5 | 7585276517f9e65d36c5eae88736cdbb |
|
BLAKE2b-256 | 43ace3b9b2854d8b43b1ae7c6f1e4de2f4e6746e24936c09d2e45b396d7922c8 |