Install & Compatibility
Where this runs
tested against v2.1.2 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Client
✓ from paho.mqtt.client import Client
✗ from tb_paho_mqtt_client import Client
Minimal client connecting, publishing, and disconnecting.
import os
from tb_paho_mqtt_client import Client
client = Client(client_id='test-client', protocol=3)
client.username_pw_set(
os.environ.get('MQTT_USER', ''),
os.environ.get('MQTT_PASS', '')
)
client.connect(
os.environ.get('MQTT_HOST', 'localhost'),
int(os.environ.get('MQTT_PORT', 1883))
)
client.loop_start()
client.publish('test/topic', 'Hello from tb-paho-mqtt-client')
client.loop_stop()
client.disconnect()
Upgrade
Version history
2.1.2latest on PyPI · released Apr 7, 2025
Audit
Dependencies
paho-mqttrequiredunderlying MQTT library