Skip to main content

Standalone MQTT client wrapper around paho-mqtt v2 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.1.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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ebus_mqtt_client-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ebus_mqtt_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 83ef60dff9d89ba748d09715e133c4d1169325688ccb25f81261b7fbd4c06235
MD5 aa1bb15d5c9b20035905ccbd60a2ed45
BLAKE2b-256 59eb872f6258344d3a1162de8a536ad6927908d535f4d9b8762ce0ed6d90b835

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebus_mqtt_client-0.1.1.tar.gz:

Publisher: publish.yml on electrification-bus/ebus-mqtt-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ebus_mqtt_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfaf9cfe24eeccb7c5608cf90916a2257f23b0d062bc1a8287370685e7c17a3a
MD5 2f0812f92c51a255054eac27134262bc
BLAKE2b-256 50d69aeb415a19c43083a3b6f71c9fb38bfdd453a52b37439a3a73353011a87f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebus_mqtt_client-0.1.1-py3-none-any.whl:

Publisher: publish.yml on electrification-bus/ebus-mqtt-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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