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.7.tar.gz (78.4 kB view details)

Uploaded Source

Built Distribution

moat_mqtt-0.42.7-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moat_mqtt-0.42.7.tar.gz
Algorithm Hash digest
SHA256 b5008d13fd95f92a3c82fea94010908218e963917a5128e2d18f6fc89778f443
MD5 640733a45d55c04b9497f9042619713d
BLAKE2b-256 c024d18ab5a7e26506c8c709da589a1a36129a94c3e158913270e0aa5c37078b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for moat_mqtt-0.42.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a55d7e9827c0cc16fffc66e91d0866ef8df7d88bfc77b1adf396cd0ef26cfbd4
MD5 424284e028de6c997f65c6a2ab433e4a
BLAKE2b-256 e9843f785055dddc9c84d65257e9aa00c2ff4194450fde7433fcdd8104a03b32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page