skillfed

azure-iot-hub

Microsoft Azure IoTHub Service Library

azure-iot-hub v2.7.0 433.2K downloads/30d#6,704 on PyPI18
Permissive license MIT License Active released

What it is and what it does

The Azure IoTHub Service SDK is a Python client library for interacting with Azure IoT Hub as a service-side application. It wraps the Azure IoT Hub REST and AMQP APIs to provide a Pythonic interface for managing IoT devices at scale. The primary use case is backend services that need to register, update, retrieve, or delete devices in an IoT Hub, and to query service-level statistics and device state.

The package depends on msrest for HTTP operations, uamqp for AMQP protocol support, and azure-core for common Azure SDK patterns. It is actively maintained, supports both Python 2.7 and modern Python 3.x versions, and carries no known security vulnerabilities. Installation is straightforward via pip with low friction.

Use it for:

  • Bulk device provisioning or registration workflows in IoT Hub from a backend service
  • Querying device properties, status, and statistics for monitoring or reporting dashboards
  • Updating device metadata, authentication keys, or enabled/disabled state in the device registry
  • Building admin or management portals that interact with IoT Hub device inventory
  • Automating device lifecycle operations (create, read, update, delete) in CI/CD pipelines

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides CRUD operations and service management for Azure IoT Hub devices, including device registry operations and service statistics retrieval.

Yes. The package is actively maintained, carries no known vulnerabilities, has low install friction, and is the official Microsoft SDK for Azure IoT Hub service-side operations. Install it if you are building a backend service that needs to manage IoT devices in Azure IoT Hub; skip it if you are building device firmware or client-side IoT applications.

Install

azure-iot-hub on PyPI

pip

pip install azure-iot-hub

uv

uv add azure-iot-hub

poetry

poetry add azure-iot-hub

Installing azure-iot-hub

Before you install

Low install friction with a pure-wheel distribution. Actively maintained as of 2025-08-06 with recent commits; supports a broad range of Python versions from 2.7 through 3.10.

License in practice

MIT License (permissive) allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.

Quickstart

pip install azure-iot-hub

from azure.iot.hub import IoTHubRegistryManager

# Instantiate with connection string and perform device operations
manager = IoTHubRegistryManager(connection_string)

Requires a valid Azure IoT Hub connection string and appropriate Azure credentials/permissions to authenticate.

Verify before relying

  • Whether uamqp (an AMQP client dependency) requires system-level libraries or compilation on all platforms
  • Specific Azure IoT Hub service tier or authentication requirements not documented in the excerpt

Package facts

License MIT License (permissive)
Python support supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4,>=2.7)
Install friction low — pure-Python wheel
Runtime dependencies 3 — msrest, uamqp, azure-core
Maintenance actively maintained — 373 days since the last release
Last repo commit
First released
Downloads 433,193/month — #6,704 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: azure_iot_hub-2.7.0-py2.py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

azure iot hub device managementiot device registry crud operationsazure iot hub service clientdevice provisioning azureiot hub device administration
azure-sdkiot-device-managementcloud-integration

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

azure-iot-device

Connects Python applications to Azure IoT Hub…

permissive · top 15,000 on PyPI

azure-mgmt-iothub

Manages Azure IoT Hub resources—creation,…

permissive · top 5,000 on PyPI

azure-mgmt-iothubprovisioningservices

Manages Azure IoT Hub Provisioning Services…

permissive · top 5,000 on PyPI

azure-mgmt-iotcentral

Manages Azure IoT Central applications and…

unclear · top 5,000 on PyPI

awsiotsdk

Connects Python applications to AWS IoT Core…

permissive · top 5,000 on PyPI

azure-mgmt-eventhub

Manages Azure Event Hub resources—namespaces,…

permissive · top 5,000 on PyPI

azure-mgmt-containerregistry

Manages Azure Container Registry…

unclear · top 5,000 on PyPI

micloud

Logs into Xiaomi cloud accounts and retrieves…

permissive · top 15,000 on PyPI

guardrails-hub-types

Provides internal data structure definitions…

permissive · top 15,000 on PyPI

tuya-device-sharing-sdk

A Python SDK for Tuya's Open API that handles…

permissive · top 15,000 on PyPI