$npx skillfedfor your agent

tb-paho-mqtt-client

MQTT version 5.0/3.1.1 client class

With conditionsPyPI InternetReleased Apr 2025118.4K downloads / moEPL-2.0 OR BSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tb_paho_mqtt_client-2.1.2-py3-none-any.whl
v2.1.2 · released 2025-04-07 · Python >=3.7

Yes, with conditions. The package is stable and well-maintained by Eclipse Foundation, with no known vulnerabilities and low install friction. However, the 494-day gap since last release warrants checking whether your use case can tolerate the known limitations: in-memory session storage (no persistence across restarts) and potential QoS 2 message duplication under certain reconnection scenarios. If those constraints are acceptable, it is a solid choice for MQTT connectivity.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or later.
  • Release 2.0+ contains breaking API changes; migration guide available in release notes.
  • Low install friction with no runtime dependencies.

License · maintenance · safety

EPL-2.0 OR BSD-3-Clause (copyleft) — Dual-licensed under EPL-2.0 or BSD-3-Clause with copyleft treatment. Users may choose either license; EPL-2.0 requires source disclosure for modifications, while BSD-3-Clause is more permissive.

last release 2025-04-07 (494 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 118,441 downloads/mo, #12,118 on PyPI

Verify before relying

pip install tb-paho-mqtt-client

import paho.mqtt.client as mqtt

mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
mqttc.connect("mqtt.eclipseprojects.io", 1883, 60)
mqttc.subscribe("topic/name")
mqttc.loop_forever()
  • Whether the 494-day gap since last release reflects stable maturity or abandonment risk
  • Current state of the known session persistence limitation (in-memory only, not persisted across restarts)
  • Whether QoS 2 double-delivery behavior under clean_session=True is acceptable for your use case
Same gist for agents: .md · .json

What it is and what it does

This is the Eclipse Paho MQTT Python client, a library for connecting applications to MQTT brokers to send and receive messages over a lightweight publish-subscribe protocol. It supports MQTT versions 5.0, 3.1.1, and 3.1, making it suitable for IoT and machine-to-machine communication where bandwidth and code footprint matter. The library provides a full Client class for fine-grained control, plus helper functions for simple one-off publish or subscribe operations.

The client offers multiple network loop modes: a threaded loop (loop_start/loop_stop) for non-blocking operation, a blocking loop (loop_forever) that handles reconnection automatically, and a manual loop for custom event integration. Callbacks allow your application to react to connection, message receipt, and publish acknowledgment events. Known limitations include in-memory-only session storage (sessions are lost on restart) and potential message loss for unacknowledged QoS 1 and QoS 2 messages.

Use it for

  • Build IoT applications that publish sensor readings or receive commands from a central broker.
  • Implement lightweight remote monitoring where network bandwidth is constrained.
  • Create publish-subscribe messaging systems for real-time data distribution across devices.
  • Integrate MQTT communication into Python applications with automatic reconnection handling.
  • Subscribe to multiple topics and process incoming messages via callbacks.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

The package is stable and well-maintained by Eclipse Foundation, with no known vulnerabilities and low install friction. However, the 494-day gap since last release warrants checking whether your use case can tolerate the known limitations: in-memory session storage (no persistence across restarts) and potential QoS 2 message duplication under certain reconnection scenarios. If those constraints are acceptable, it is a solid choice for MQTT connectivity.

Install

tb-paho-mqtt-client on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance status is aging (494 days since last release), though the package remains supported for current Python versions (3.7+).

Requires Python 3.7 or later. Release 2.0+ contains breaking API changes; migration guide available in release notes.

License in practice

Dual-licensed under EPL-2.0 or BSD-3-Clause with copyleft treatment. Users may choose either license; EPL-2.0 requires source disclosure for modifications, while BSD-3-Clause is more permissive.

Quickstart

pip install tb-paho-mqtt-client

import paho.mqtt.client as mqtt

mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
mqttc.connect("mqtt.eclipseprojects.io", 1883, 60)
mqttc.subscribe("topic/name")
mqttc.loop_forever()

Verify before relying

  • Whether the 494-day gap since last release reflects stable maturity or abandonment risk
  • Current state of the known session persistence limitation (in-memory only, not persisted across restarts)
  • Whether QoS 2 double-delivery behavior under clean_session=True is acceptable for your use case

Package facts

LicenseEPL-2.0 OR BSD-3-Clause copyleft
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 494 days since the last release
First released
Downloads118,441 / month, #12,118 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI ApprovedNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: CommunicationsTopic :: Internet

Evidence: tb_paho_mqtt_client-2.1.2-py3-none-any.whl

Tags

Capabilities
mqtt client librarypublish subscribe messagingiot connectivity protocolmqtt broker connectionlightweight message transportmachine to machine communicationmqtt python client
Topics
mqttiotmessaging
PyPI keywords
paho

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 › “lightweight message transport”

  • tb-paho-mqtt-clientProvides an MQTT client library implementing protocol versions 5.0,…
  • paho-mqttProvides an MQTT client library for connecting to MQTT brokers to…
  • jsonrpcclientGenerates JSON-RPC request objects and parses JSON-RPC responses in…

Give your agent the search over MCP, or paste the wish link into any chat.

More Internet packages

botocore Worth it
PyPI · Internet · released Aug 2026

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.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

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.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also paho-mqtt · tb-mqtt-client · gmqtt · aiomqtt · asyncio-mqtt · kuksa-client · types-paho-mqtt · pymysensors · HATasmota · solace-pubsubplus