tb-mqtt-client
ThingsBoard python client SDK
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, requires only three lightweight dependencies, and provides a straightforward abstraction over MQTT and HTTP protocols for ThingsBoard integration. It is well-suited for any Python IoT application targeting the ThingsBoard platform. Install if you are building a device or gateway client for ThingsBoard.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; ThingsBoard server must be accessible at the specified host and port.
- Low install friction with a pure-wheel distribution.
- Actively maintained with recent commits and steady releases since 2019.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache Software License 2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-02-24 (171 days) · last repo commit 2026-08-14 · 130 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 109,779 downloads/mo, #12,499 on PyPI
Alternatives
Verify before relying
pip install tb-mqtt-client
from tb_mqtt_client import TBDeviceMqttClient
client = TBDeviceMqttClient("127.0.0.1", username="A1_TEST_TOKEN")
client.connect()
client.send_telemetry({"temperature": 41.9})
client.disconnect()- Whether TLS v1.2 is the only supported TLS version or if newer versions are also supported
- Performance characteristics when handling high-frequency telemetry or large device counts
- Specific version constraints or compatibility notes for tb-paho-mqtt-client, requests, and orjson
What it is and what it does
This package provides a Python client library for interacting with ThingsBoard, an open-source IoT platform. It abstracts the complexity of MQTT and HTTP communication, allowing developers to send device telemetry, manage attributes, subscribe to server updates, and handle remote procedure calls without building protocol handlers from scratch.
The SDK supports both device and gateway modes, with MQTT offering QoS 0 and 1 delivery guarantees and automatic reconnection, while HTTP provides a simpler alternative for basic operations. It includes built-in support for TLS encryption, firmware updates, and device claiming. The library wraps tb-paho-mqtt-client for MQTT operations and requests for HTTP, simplifying integration into Python applications that need to communicate with ThingsBoard.
Use it for
- Send sensor readings and device metrics to ThingsBoard for real-time monitoring and visualization
- Subscribe to attribute changes from the server to dynamically update device configuration
- Implement gateway functionality to relay telemetry from constrained devices through a single connection
- Handle remote procedure calls from ThingsBoard to trigger device actions or retrieve system information
- Manage secure MQTT connections with TLS certificates for production IoT deployments
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, requires only three lightweight dependencies, and provides a straightforward abstraction over MQTT and HTTP protocols for ThingsBoard integration. It is well-suited for any Python IoT application targeting the ThingsBoard platform. Install if you are building a device or gateway client for ThingsBoard.
Install
tb-mqtt-client on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with recent commits and steady releases since 2019. Requires Python 3.9 or later.
Requires Python 3.9 or later; ThingsBoard server must be accessible at the specified host and port.
License in practice
Licensed under Apache Software License 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install tb-mqtt-client
from tb_mqtt_client import TBDeviceMqttClient
client = TBDeviceMqttClient("127.0.0.1", username="A1_TEST_TOKEN")
client.connect()
client.send_telemetry({"temperature": 41.9})
client.disconnect()
Verify before relying
- Whether TLS v1.2 is the only supported TLS version or if newer versions are also supported
- Performance characteristics when handling high-frequency telemetry or large device counts
- Specific version constraints or compatibility notes for tb-paho-mqtt-client, requests, and orjson
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagestb-paho-mqtt-clientrequestsorjson |
| Maintenance | Actively maintained 171 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,779 / month, #12,499 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: tb_mqtt_client-1.13.13-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “thingsboard mqtt client”
- tb-mqtt-clientPython client SDK for ThingsBoard IoT platform, supporting MQTT and…
- gmqttgmqtt is an async Python MQTT client that connects to MQTT brokers,…
- aiomqttAn asyncio-native MQTT client that wraps paho-mqtt to provide…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also pymysensors · tb-paho-mqtt-client · awsiotsdk · paho-mqtt · gmqtt · meross-iot · tuya-device-sharing-sdk · yoto-api · scarf-sdk · pysmappee