pysparkplug is a pip-installable package hosted on PyPI. Getting started is as easy as:
$ pip install pysparkplugpysparkplug uses the Eclipse Paho™ MQTT Python Client, i.e. paho-mqtt, for low-level MQTT communication.
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.
pysparkplug's various interfaces are fully type annotated.