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 Distribution
aedes_mqtt-0.1.1.tar.gz
(3.8 kB
view details)
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.1.tar.gz.
File metadata
- Download URL: aedes_mqtt-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4f60937dfe62c7f4e2b0f689537f1324cee05ac668fe4917038056cb74c2d6e
|
|
| MD5 |
c7ed095e4861cd9cd2bbe49cb38aad77
|
|
| BLAKE2b-256 |
8a95c4d5c07e8a93761207adfdc1c44a9beba151191b68a4ef64637e9a52e2a7
|
File details
Details for the file aedes_mqtt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aedes_mqtt-0.1.1-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 |
62ae61ebb9c4abe24f1d3fae2b67006f5edde9fb89f12ea50d13e1de78a8439d
|
|
| MD5 |
032b007d2bb61a13f52c24be5b4572f0
|
|
| BLAKE2b-256 |
301683c4a663ed46e2de00ab0e987645c815f84210073ca9609eae585a155010
|