Registry / http-networking / tb-mqtt-client

tb-mqtt-client

JSON →
library1.13.13pypypiunverified

Official ThingsBoard Python client SDK for MQTT-based device communication. Current version 1.13.13, actively maintained with monthly releases. Supports telemetry upload, attribute publishing, RPC handling, and provisioning for ThingsBoard IoT platform.

pip install tb-mqtt-client
INSTALL
IMPORT
SIG · TB-MQTT-CLIENT
T
tb-mqtt-client
http-networkingpythonv1.13.13
Install
2.6s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.13.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 23MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TBDeviceMqttClient
from tb_device_mqtt import TBDeviceMqttClient
from tb_mqtt_client import TBDeviceMqttClient
Wrong module name leads to ImportError

Connects to ThingsBoard, sends telemetry using access token authentication.

from tb_device_mqtt import TBDeviceMqttClient import os client = TBDeviceMqttClient("demo.thingsboard.io", username=os.environ.get('TB_ACCESS_TOKEN', '')) client.connect() client.send_telemetry({"temperature": 22.5}) client.disconnect()
Debug
Known issues
breakingTBDeviceMqttClient no longer supports direct host passing in constructor with TLS; use TBDeviceMqttClient(host, port=8883, tls=True) or set tls=True explicitly.
fix
Use keyword argument tls=True when connecting to TLS endpoints.
affects: >=1.10.0
deprecatedThe 'quality_of_service' parameter in send_telemetry is deprecated and will be removed in a future version.
fix
Remove qos parameter from send_telemetry calls.
affects: >=1.12.0
gotchaThe client does not auto-reconnect by default; connection loss leads to silent failures.
fix
Implement manual reconnection logic using on_disconnect callback or enable automatic reconnect via paho-mqtt options.
affects: all
Upgrade
Version history
1.13.13latest on PyPI · released Feb 24, 2026
Audit
Dependencies
paho-mqttrequiredMQTT protocol implementation
Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources
tb-mqtt-client — pip install tb-mqtt-client · libregistry