Python API & client shell for talking to Meshtastic devices
Actively maintained. Last release 4 months ago. A safe choice.
pip install meshtasticOverview
This small library (and example application) provides an easy API for sending and receiving messages over mesh radios. It also provides access to any of the operations/data available in the device user interface or the Android application. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
Container usage
Container images are published to GHCR for this repository. The container entrypoint defaults to running meshtastic,
so CLI flags can be passed directly:
docker run --rm ghcr.io/meshtastic/python --help
To run another command, pass it explicitly (for example, a shell):
docker run --rm -it --entrypoint /bin/sh ghcr.io/meshtastic/python
The container runs as a non-root user by default. When talking to local hardware, pass the serial device through
explicitly (for example --device /dev/ttyUSB0:/dev/ttyUSB0) and ensure host device permissions allow access.