Skip to main content

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.toml and setuptools.

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


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)

Uploaded Source

Built Distribution

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

aedes_mqtt-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for aedes_mqtt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b4f60937dfe62c7f4e2b0f689537f1324cee05ac668fe4917038056cb74c2d6e
MD5 c7ed095e4861cd9cd2bbe49cb38aad77
BLAKE2b-256 8a95c4d5c07e8a93761207adfdc1c44a9beba151191b68a4ef64637e9a52e2a7

See more details on using hashes here.

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

Hashes for aedes_mqtt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62ae61ebb9c4abe24f1d3fae2b67006f5edde9fb89f12ea50d13e1de78a8439d
MD5 032b007d2bb61a13f52c24be5b4572f0
BLAKE2b-256 301683c4a663ed46e2de00ab0e987645c815f84210073ca9609eae585a155010

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