No description
  • Python 99.1%
  • Shell 0.8%
  • Makefile 0.1%
Find a file
Ian McEwen 8f0faf5c3f
Some checks failed
CI / build (3.10) (push) Failing after 35s
CI / build (3.11) (push) Failing after 8s
CI / build (3.12) (push) Failing after 8s
CI / build (3.9) (push) Failing after 8s
CI / validate (3.10) (push) Failing after 25s
CI / validate (3.11) (push) Failing after 26s
CI / validate (3.12) (push) Failing after 24s
CI / validate (3.9) (push) Failing after 25s
Create and publish Container image / build-and-push-image (auto, Containerfile.alpine) (push) Failing after 3m33s
Create and publish Container image / build-and-push-image (false, Containerfile.debian, -debian) (push) Failing after 39s
One more dependency update
2026-05-31 20:22:00 -07:00
.github Remove arm/v7 from the container build right now, can't be bothered 2026-05-31 17:02:39 -07:00
.reuse Clarify licensing in compliance with https://reuse.software/ 2024-06-27 19:30:52 +02:00
.trunk sort linters 2023-09-06 13:16:27 -07:00
.vscode fix launch.json punctuation 2025-07-26 22:35:18 -07:00
bin Merge branch 'review/pr-847' 2026-05-31 15:45:14 -07:00
examples Make examples more regularized and focused, and add contribution guidelines for the examples folder 2026-05-31 17:50:14 -07:00
extra move tuntest 2020-12-21 14:48:01 +08:00
info add nano_g1 2022-04-27 11:29:05 -07:00
meshtastic Merge branch 'review/pr-894' 2026-05-31 18:10:59 -07:00
protobufs@dd6c3f850a protobufs: v2.7.24 2026-05-31 09:00:56 -07:00
tests fix bitrot in an old sanity test - use correct namespace 2024-06-25 11:31:02 -07:00
.coveragerc fix code coverage CI false alarm? 2024-06-26 13:52:54 -07:00
.dockerignore Container: Add initial container for meshtastic-cli 2025-11-21 16:16:04 +01:00
.gitattributes mark protobufs folder as generated code for github 2024-08-21 22:27:18 -07:00
.gitignore Add T-Deck device support to Meshtastic CLI 2025-09-18 14:39:46 -06:00
.gitmodules Changes 2022-10-31 19:47:42 +10:00
.pylintrc fix linter warnings 2024-07-03 09:57:24 -07:00
Containerfile Container: Add initial container for meshtastic-cli 2025-11-21 16:16:04 +01:00
Containerfile.alpine tryfix container build issue 2026-05-31 16:54:34 -07:00
Containerfile.debian Harden a bit, update some sections, add a README section 2026-05-31 15:45:02 -07:00
Dockerfile Container: Add initial container for meshtastic-cli 2025-11-21 16:16:04 +01:00
example_config.yaml add to example config 2025-06-24 10:12:12 -07:00
exampleConfig.yaml establish trunk format 2023-03-31 20:09:59 +02:00
LICENSE.md rename and move license file 2025-06-25 12:23:00 -07:00
Makefile Changes 2022-10-31 19:47:42 +10:00
MANIFEST.in Add MANIFEST.in 2021-04-26 18:17:24 +02:00
poetry.lock One more dependency update 2026-05-31 20:22:00 -07:00
pyproject.toml loosen packaging version requirement 2026-04-10 11:41:29 -07:00
pytest.ini fixes for working on mac air 2022-01-11 16:36:39 -08:00
README.md Harden a bit, update some sections, add a README section 2026-05-31 15:45:02 -07:00
standalone_readme.txt Update codecov link, remove current docs link, update standalone installation docs link 2024-03-30 10:17:02 -07:00
TODO.md BLE Support 2024-01-15 21:33:53 +01:00
vercel.json establish trunk format 2023-03-31 20:09:59 +02:00

Meshtastic Logo

Meshtastic Python

A Python library and client for use with Meshtastic devices.

codecov PyPI - Downloads CI CLA assistant Fiscal Contributors GPL-3.0

Overview

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.

Call for Contributors

This library and CLI has gone without a consistent maintainer for a while, and there's many improvements that could be made. We're all volunteers here and help is extremely appreciated, whether in implementing your own needs or helping maintain the library and CLI in general.

If you're interested in contributing but don't have specific things you'd like to work on, look at the roadmap below!

Roadmap

This should always be considered a list in progress and flux -- inclusion doesn't guarantee implementation, and exclusion doesn't mean something's not wanted. GitHub issues are a great place to discuss ideas.

  • Types
    • type annotations throughout the codebase, and upgrading mypy running in CI to --strict
  • async-friendliness
  • CLI completeness & consistency
    • the CLI should support all features of the firmware
    • there should be a consistent output format available for shell scripting
  • CLI input validation & documentation
    • what arguments and options are compatible & incompatible with one another?
    • can the options be restructured in a way that is more self-documenting?
    • pubsub events should be documented clearly
  • helpers for third-party code
    • it should be easy to write a script that supports similar options to the CLI so many tools support the same ways of connecting to nodes
  • data storage & processing
    • there should be a standardized way of recording packets for later use, debugging, etc.
    • a persistence layer could also keep track of nodes beyond nodedb, as the apps do
    • a sqlite database schema and tools for writing to it may be a good starting point
    • enable maps, charts, visualizations

Stats

Alt