Pysparkplug
An open-source, Python implementation of Sparkplug B, an MQTT topic and payload definition standard
Install / Use
/learn @matteosox/PysparkplugREADME
PySparkplug: Sparkplug B for Python
Getting Started
Installation
pysparkplug is a pip-installable package hosted on PyPI. Getting started is as easy as:
$ pip install pysparkplug
pysparkplug uses the Eclipse Paho™ MQTT Python Client, i.e. paho-mqtt, for low-level MQTT communication.
Usage
Simple demos of the EdgeNode, Device, and Client classes publishing and subscribing all supported payloads and metric datatypes can be found in the notebooks directory. To run them dynamically, you'll need to install Docker and run just notebooks before opening up your local browser to http://localhost:8888. The password is bokchoy.
Features
Fully type annotated
pysparkplug's various interfaces are fully type annotated.
