Pytelemetry Command Line Interface
This module is a powerful command line interface for extremely fast debugging and communication with embedded systems.
It allows for plotting embedded device’s data on-the-fly, publishing values on any topics, listing serial ports and much more.
The CLI relies on custom protocol, implemented in Python and C languages. The main strength of this protocol is strong decoupling between communicating devices, simplicity yet flexibility.
For instance, the protocol supports sending standard linear data, but also arrays and sparse arrays in a network-friendly manner.
pytelemetry
This module is the Python implementation of the communication protocol.
It can be used directly (without the CLI) to script communications with an embedded device.
from pytelemetry import Pytelemetry
from pytelemetry.transports.serialtransport import SerialTransport
import time
transport = SerialTransport()
tlm = Pytelemetry(transport)
transport.connect({port:'com9',baudrate:'9600'})
# publish once on topic 'throttle' (a named communication channel)
tlm.publish('throttle',0.8,'float32')
def printer(topic, data, opts):
print(topic," : ", data)
# Subscribe a `printer` function called on every frame with topic 'feedback'.
tlm.subscribe("feedback", printer)
# Update during 3 seconds
timeout = time.time() + 3
while True:
tlm.update()
if time.time() > timeout:
break
# disconnect
transport.disconnect()
print("Done.")
Language C implementation
Telemetry is the same protocol implemented in C language.
Centralized documentation
The documentation for all three projects is centralized here.
MIT License, (C) 2015-2016 Rémi Bèges (remi.beges@gmail.com)
Metadata
Release files for pytelemetrycli 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytelemetrycli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pytelemetrycli-1.1.0-py3-none-any.whl
| Download URL | pytelemetrycli-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fe7279238d9052d132361744323aa72adbc8807f9d86bbb9e3c1b24820c7e9c
|
|
BLAKE2b-256 checksum How to use checksums |
338bcad6036bae63f27679df07ecb273172f69c211e06017d500123ab5783aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytelemetrycli 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.