Skip to main content

Async MQTT broker and client, with optional MoaT-KV support

Project description

MoaT-MQTT is an open source MQTT 3.1.1 client and broker implementation. It is a fork of hbmqtt with support for anyio and MoaT-KV.

MoaT-MQTT provides a straightforward API based on coroutines, making it easy to write highly concurrent applications.

Deprecation Notice

MoaT-MQTT will be retired because by now, broker support for MQTT 5 is nearly universal.

The designated replacement is mqttproto.

Features

MoaT-MQTT implements the full set of MQTT 3.1.1 protocol specifications and provides the following features:

  • Support for QoS 0, QoS 1 and QoS 2 messages flows

  • Client auto-reconnection

  • Authentication via password file (more methods can be added through a plugin system)

  • Basic $SYS topics

  • TCP and websocket support

  • SSL support over TCP and websocket

  • Plugin system

  • Optional: Storage of retained messages in MoaT-KV

Build status

TODO.

Project status

TODO.

Getting started

MoaT-MQTT is available on Pypi and can installed simply using pip :

$ pip install moat-mqtt

Documentation is available on Read the Docs.

Bug reports, patches and suggestions welcome! Just open an issue.

'Join the chat at https://gitter.im/beerfactory/moat-mqtt'

Moat-MQTT? DistMQTT? MoaT-KV? Whatever?

MoaT-MQTT is a Python package that includes a stand-alone MQTT server, as well as basic client scripts. It is based on hbmqtt and was previously named “DistMQTT”.

MoaT-KV is a distributed key-value storage system. It uses the MoaT-MQTT client library as its connector to an MQTT server, preferably Mosquitto or some other low-latency broker. It was previously named “DistKV”.

A MoaT-MQTT server can hook into MoaT-KV so that some messages are persisted, translated (i.e. store msgpack messages encoding True and False, instead of the strings “on” and “off” (or “ON” and “OFF” or “1” and “0” or …)), filtered (e.g. the client can only modify existing messages but not add any), et al..

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

moat_mqtt-0.42.12.tar.gz (79.0 kB view details)

Uploaded Source

Built Distribution

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

moat_mqtt-0.42.12-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

Details for the file moat_mqtt-0.42.12.tar.gz.

File metadata

  • Download URL: moat_mqtt-0.42.12.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for moat_mqtt-0.42.12.tar.gz
Algorithm Hash digest
SHA256 7045bb1e5d40526eb5516c33812c7de54208699c3c6fc66e5092e0d998b9d359
MD5 9561974a8bae9b0a0297039c1960bd9f
BLAKE2b-256 fcf533021b48e35b1f4f9aa375a1c16b0cd156a345a40dc0f17ad2fab0d478fe

See more details on using hashes here.

File details

Details for the file moat_mqtt-0.42.12-py3-none-any.whl.

File metadata

  • Download URL: moat_mqtt-0.42.12-py3-none-any.whl
  • Upload date:
  • Size: 71.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for moat_mqtt-0.42.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b6be1c80126c395335516e6c59040ca13586ef166f57fbf7a900eb6b782cacdc
MD5 eb9d24630ea4b0b6dec3b694ceae6e87
BLAKE2b-256 2a03eacaafe018fbfcbeb136a34fb2e8d43126974524866b9fef9cd79ffd8c87

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