Standalone MQTT client wrapper around paho-mqtt with TLS, reconnection, subscription recovery, and topic pattern matching
Project description
ebus-mqtt-client
Standalone MQTT client wrapper around paho-mqtt v2.
Features
- TLS support (secure with CA verification, insecure, or plaintext)
- Automatic reconnection with configurable backoff
- Subscription recovery on reconnect
- Topic pattern matching via paho's
MQTTMatcher - Last Will and Testament (LWT)
- MQTTv3 and MQTTv5 protocol support
- Factory method for dict-based configuration
Install
pip install ebus-mqtt-client
Quick start
from ebus_mqtt_client import MqttClient
client = MqttClient(
client_id="my-client",
endpoint="broker.example.com",
port=1883,
)
client.start()
client.subscribe("sensors/#", callback_param)
client.publish("sensors/temp", "22.5")
client.stop()
From a config dict
cfg = {
"host": "broker.example.com",
"port": 8883,
"use_tls": True,
"tls_insecure": False,
"tls_ca_cert": "/path/to/ca.pem",
"authentication": {
"type": "USER_PASS",
"username": "user",
"password": "secret",
},
}
client = MqttClient.from_config(cfg, client_id="my-client")
client.start()
License
MIT License — Copyright (c) 2026 Clark Communications Corporation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ebus_mqtt_client-0.1.3.tar.gz.
File metadata
- Download URL: ebus_mqtt_client-0.1.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aab7abdb84a6dc99c57f33c26c397bd69c8db67a03acfca50f2163f4b52760b
|
|
| MD5 |
ee1319f7a2454142dd0c584c690953fe
|
|
| BLAKE2b-256 |
8d36b52e4c2631779e5f6c0e90c47fe9ff1018a3a6e3c6f54f3a7553eb1a9a1e
|
Provenance
The following attestation bundles were made for ebus_mqtt_client-0.1.3.tar.gz:
Publisher:
publish.yml on electrification-bus/ebus-mqtt-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebus_mqtt_client-0.1.3.tar.gz -
Subject digest:
9aab7abdb84a6dc99c57f33c26c397bd69c8db67a03acfca50f2163f4b52760b - Sigstore transparency entry: 1452469135
- Sigstore integration time:
-
Permalink:
electrification-bus/ebus-mqtt-client@e6d55d720d36ba40fee1989df548abcbcab528ad -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/electrification-bus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e6d55d720d36ba40fee1989df548abcbcab528ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file ebus_mqtt_client-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ebus_mqtt_client-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
282d2df32e4dd559bd41ac8d3b0e81e5f2ba165b027517dd61d199ab150437e1
|
|
| MD5 |
a37856f68e660b6b0149961290ea1d62
|
|
| BLAKE2b-256 |
f22f7618295acf76cc1586b74e0e6ef0e04b412501fd3279c3fc64e5f669667b
|
Provenance
The following attestation bundles were made for ebus_mqtt_client-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on electrification-bus/ebus-mqtt-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebus_mqtt_client-0.1.3-py3-none-any.whl -
Subject digest:
282d2df32e4dd559bd41ac8d3b0e81e5f2ba165b027517dd61d199ab150437e1 - Sigstore transparency entry: 1452469222
- Sigstore integration time:
-
Permalink:
electrification-bus/ebus-mqtt-client@e6d55d720d36ba40fee1989df548abcbcab528ad -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/electrification-bus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e6d55d720d36ba40fee1989df548abcbcab528ad -
Trigger Event:
push
-
Statement type: