--- id: meshtastic version: "2.7.11" license: GPL-3.0-only license_treatment: copyleft maintenance: active --- # meshtastic — Python API & client shell for talking to Meshtastic devices License: copyleft · Maintenance: active · Downloads: 113.2K/mo ## What it is and what it does Meshtastic is a Python interface to Meshtastic mesh radio devices, which are low-power LoRa-based radios that form self-healing mesh networks. The library wraps the device protocol and exposes it through a publish-subscribe event system, so you can subscribe to message types you care about and react to them in your code. It also provides a command-line tool that mirrors the capabilities of the official Android and device UI applications. The library depends on bleak for Bluetooth communication, pyserial for USB/serial connections, protobuf for message serialization, and several utility libraries. It's designed to work with the device's native mesh protocol, so you can build applications that integrate mesh messaging into Python workflows—from simple scripts that relay messages to external systems, to more complex monitoring or logging applications. Use it for: - Build a Python script that receives mesh radio messages and logs them to a database or cloud service. - Create a CLI tool that queries device status, node information, and mesh topology from connected Meshtastic radios. - Integrate mesh messaging into a larger application using the publish-subscribe event model to react to incoming messages. - Monitor mesh network health by subscribing to device telemetry and position updates from multiple nodes. - Automate device configuration and firmware updates across a fleet of Meshtastic radios via serial or Bluetooth. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Python library and CLI for communicating with Meshtastic mesh radio devices, sending and receiving messages, and accessing device operations through a publish-subscribe event model. Yes, if you own or plan to use Meshtastic devices and need Python integration. The library is actively maintained, has low install friction, and provides both programmatic and CLI access to device functionality. The GPL-3.0 copyleft license is a hard blocker for proprietary projects; open-source or internal-use projects face no barrier. No known security vulnerabilities. ## Install pip install meshtastic uv add meshtastic poetry add meshtastic ## Installing meshtastic Before you install: Low install friction with a pure-Python wheel distribution. Actively maintained with a release 28 days ago. Supports Python 3.9 through 3.14. Eight runtime dependencies are all common, stable libraries (bleak, protobuf, pypubsub, pyserial, pyyaml, requests, packaging, tabulate). License in practice: GPL-3.0-only copyleft license means any code that links this library must also be released under GPL-3.0 or a compatible license. Proprietary or permissively-licensed projects cannot use it without legal review. Quickstart: pip install meshtastic import meshtastic import meshtastic.serial_interface # Connect to device via serial iface = meshtastic.serial_interface.SerialInterface() # Define a callback for received messages def on_receive(packet): print(f"Received: {packet}") # Subscribe to receive events iface.on_receive = on_receive # Send a message iface.sendText("Hello mesh", destinationId=0xFFFFFFFF) Requires a connected Meshtastic device accessible via serial port or Bluetooth; bleak (for Bluetooth) or pyserial (for USB/serial) must be able to communicate with the device. Verify before relying: - Whether the library works with all Meshtastic device models and firmware versions currently in circulation. - Performance characteristics when handling high message volumes or many simultaneous subscriptions. - Stability of the async-friendliness roadmap item and whether async support is currently available. ## Package facts - License: GPL-3.0-only (copyleft) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 113.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags mesh radio communication python, meshtastic device control, lora mesh networking, radio message api, mesh network python library, device serial communication, pubsub radio events, mesh-networking, radio-communication, iot-devices [View on SkillFed](https://skillfed.io/packages/meshtastic) · [View on PyPI](https://pypi.org/project/meshtastic/)