A reliable MQTT publisher for AI runtime environments.
Project description
aedes-mqtt
A reliable, silent, production-ready MQTT publisher library for Python >3.10, built from paho-mqtt.
Features
- Silent by Design: Contains zero internal logging. All errors are reported via return values or exceptions, giving full control to the consumer.
- JSON Serialization: Automatically converts dictionaries to JSON.
- Dynamic Connection Management: Enable or disable the publisher at runtime.
- QoS Support: Full support for MQTT QoS 0, 1, and 2.
- Modern Packaging: Built with
pyproject.tomlandsetuptools.
Installation
pip install aedes-mqtt
Quick Start
The library is silent; ensure you check return values for success/failure.
from aedes_mqtt import MQTTPublisher
# Initialize
publisher = MQTTPublisher(
broker="localhost",
port=1883,
enable=True
)
# Publish a message
data = {"event": "detection", "object": "car"}
success = publisher.publish(topic="ai/tracks", payload=data, qos=1)
if not success:
print("Publish failed")
# Cleanup
publisher.close()
Requirements
- Python >3.10
paho-mqtt==2.1.0
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 aedes_mqtt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aedes_mqtt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
395dfcac84c6146a8b233802af7ba8757026ca2638c4c1f1e01298183a00039e
|
|
| MD5 |
c89a5cd29f70233bf668301fd276c8d3
|
|
| BLAKE2b-256 |
213fbd82494ec220de697d300d77444c9f7fe5d1aae3cd0d37bdd6d9e2eb7f95
|