Gourd

Gourd is an opinionated Python framework for writing MQTT applications. It handles connection management, status reporting, and logging so you can focus on your application logic.

Quick Start

Install with pip:

pip install gourd

Create my_app.py:

from gourd import Gourd

app = Gourd(app_name='my_app', mqtt_host='localhost')

@app.subscribe('#')
def print_all(message):
    app.log.info(f'{message.topic}: {message.payload}')

Run it:

gourd my_app:app

Features

Documentation