Skip to main content

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

ebus_mqtt_client-0.1.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ebus_mqtt_client-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file ebus_mqtt_client-0.1.2.tar.gz.

File metadata

  • Download URL: ebus_mqtt_client-0.1.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for ebus_mqtt_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7477cded5b544cdd5dbad3f66b25b85a2742f5abd7eb2f908ee1e08c215aa5d9
MD5 5770271de68c770b7ffaf904bad3eac0
BLAKE2b-256 588244884909698cf96c3e04243419e8c07328b37397f0edbd40aa5972adb732

See more details on using hashes here.

File details

Details for the file ebus_mqtt_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ebus_mqtt_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 949ee88b834baf5f5d94ec4c1a013ae4b529029e48a4ff05325853330d8d788b
MD5 5aac7e4b4ed37e555e651c7d85b122cb
BLAKE2b-256 d33d3e15cc69c2ffc0301b1a75657b868c52881b6c3a5766f85a0112444b887e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page