Metadata-Version: 2.4
Name: meshdb
Version: 0.1.1
Summary: A python package for managing a Meshtastic node database.
License-Expression: GPL-3.0-only
License-File: LICENSE
Author: Ben Lipsey
Author-email: ben@pdxlocations.com
Requires-Python: >=3.9,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: meshtastic (>=2.6.0,<3.0.0)
Project-URL: Homepage, https://github.com/pdxlocations/meshdb
Project-URL: Issues, https://github.com/pdxlocations/meshdb/issues
Description-Content-Type: text/markdown



# meshdb

A lightweight Python library for storing Meshtastic node, telemetry, and message data in per-node SQLite databases.

## Quick Start

```python
from meshdb import handle_packet, set_default_db_path

set_default_db_path("./data")

# example packet (decoded from Meshtastic interface)
packet = {
    "from": 12345678,
    "rxTime": 1700000000,
    "decoded": {"portnum": "NODEINFO_APP", "user": {"longName": "TestNode"}}
}

handle_packet(packet, owner_node_num=12345678)
```

Run `python -m meshdb` to view all known nodes and their latest telemetry in JSON format.
