Registry / http-networking / meshtastic

meshtastic

JSON →
library2.7.9pypypiunverified

Python API and client shell for communicating with Meshtastic mesh radios. Current version 2.7.8, supporting Python 3.9-3.14. Regular releases follow the Meshtastic firmware updates.

pip install meshtastic
INSTALL
IMPORT
SIG · MESHTASTIC
M
meshtastic
http-networkingpythonv2.7.9
Install
3.9s avg
Import
Disk
33MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.7.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 33.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 36MB
33MB installed
● package 33MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SerialInterface
from meshtastic import SerialInterface
from meshtastic import SerialInterface

Connects to a Meshtastic device via serial and sends a broadcast message.

import meshtastic import meshtastic.serial_interface import time # Replace with your serial port, e.g., '/dev/ttyUSB0' or 'COM3' iface = meshtastic.serial_interface.SerialInterface('/dev/ttyUSB0') try: print("Connected! Sending a message...") iface.sendText("Hello mesh!", destinationId=meshtastic.BROADCAST_NUM) time.sleep(2) finally: iface.close()
meshtastic --version
Debug
Known issues
breakingIn meshtastic >= 2.0, the SerialInterface constructor no longer accepts a baudrate parameter; baudrate is auto-detected.
fix
Remove any explicit baudrate argument when creating SerialInterface, e.g., SerialInterface('/dev/ttyUSB0') instead of SerialInterface('/dev/ttyUSB0', 115200).
affects: >=2.0.0
breakingThe 'sendData' method was removed in favor of 'sendText' and 'sendRaw'.
fix
Replace calls to iface.sendData(data) with iface.sendText(data) for text or iface.sendRaw(data) for raw bytes.
affects: >=2.0.0
gotchaWhen connecting via TCP (WiFi), use meshtastic.tcp.TCPInterface, not meshtastic.serial_interface.
fix
from meshtastic.tcp import TCPInterface; iface = TCPInterface('192.168.1.100')
affects: all
deprecatedThe top-level 'meshtastic' module functions like 'sendText' are deprecated; use instance methods.
fix
Use iface.sendText() instead of meshtastic.sendText(iface, 'hello')
affects: >=2.0.0
Upgrade
Version history
2.7.9latest on PyPI · released Jun 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
meshtastic — pip install meshtastic · libregistry