Skip to main content

English Deutsch

Kymotrace – Embedded Telemetry

kymocore for Python · Measurements from your script, live on screen

Pure Python sender for the Kymotrace protocol – the PC counterpart of KymoCore.

Version 0.2.0 License MIT Python 3.10+ Transports


What is it about?

Not every signal comes from a microcontroller. A Raspberry Pi reads sensors, a test bench script drives a power supply, a simulation computes a plant model. Printing those values or writing CSV files means looking at them afterwards.

kymocore sends them to KymoStudio while they happen, with the same compact binary frames (9 to 21 bytes) that the KymoCore firmware library uses. Firmware and PC script appear side by side in one KymoStudio workbench: as curves, XY traces or in 3D.

KymoStudio showing measurements live as a time series and an XY chart
Live data in KymoStudio: three signals over time, two as XY traces.

What kymocore can do

Version 0.2.0 adds the five KymoCore Embedded 8 feature areas through a shared Core.main() lifecycle: periodic plots, writable parameters with discovery/readback, explicitly mapped live variables, memory telemetry and structured tracing. See the Core compatibility guide and complete five-feature example. The simple Sender API below remains available.

One call per value send(channel, value), optionally with x= and z= for XY and XYZ charts. Up to 256 channels.
Timestamps included Each value carries the time since the sender started, in microseconds or milliseconds, from a monotonic clock.
Four transports UDP, TCP, serial/USB and MQTT. KymoStudio's existing sources receive them unchanged.
No dependencies The core uses only the standard library. pyserial and paho-mqtt are optional extras.
Same protocol as the firmware Tested against the golden vectors of PROTOCOL.md v6.2, optional CRC-8 checksum.
Raw frames too frame() returns the bytes for a transport of your own.

What it is used for

  • Raspberry Pi and single-board computers: plot sensor values read via I²C, SPI or GPIO live.
  • Test benches and HIL setups: show the script's setpoints next to the measurements of the device under test.
  • Simulations: watch a plant model or controller simulation run, with the same charts as on real hardware.
  • Data from other programs: forward values from instruments, logs or APIs to KymoStudio.

Quick start

pip install kymocore            # UDP and TCP
pip install kymocore[serial]    # + serial / USB CDC (pyserial)
pip install kymocore[mqtt]      # + MQTT (paho-mqtt)

Complete example

The following script sends a sine wave on channel 0 and a cosine with an X coordinate on channel 1, every 10 ms for ten seconds.

import math
import time

from kymocore import Sender

with Sender.udp('127.0.0.1', 5025) as sender:
    for i in range(1000):
        sender.send(0, math.sin(i / 20))           # channel 0, value
        sender.send(1, math.cos(i / 20), x=i)      # channel 1, XY point
        time.sleep(.01)

In KymoStudio, add a UDP source on port 5025, start it and assign channel 0 to a chart.

Transports

Transport Call KymoStudio source
UDP Sender.udp(host, port) UDP, listens on port
TCP Sender.tcp_server(port) Telnet/TCP, connects to this machine and port
Serial Sender.serial('COM4', 115200) Serial, same baud rate
MQTT Sender.mqtt(broker, topic) MQTT, topic among its receive topics

KymoStudio connects to a TCP device, so tcp_server listens and sends to every connected client. Values sent while no client is connected are dropped, as on a device. MQTT publishes one message per value.

Options

Option Default Meaning
timestamps='us' yes Microseconds; wraps after 71.6 minutes, KymoStudio continues the time axis
timestamps='ms' Milliseconds; wraps after 49.7 days
timestamps=None No timestamp; KymoStudio stamps on arrival
crc=True off Adds the CRC-8/ATM checksum to every frame

Channel IDs outside 0–255 and NaN or infinite values raise ValueError. Microsecond timestamps need KymoStudio 2.5 or newer.

Part of Kymotrace

How KymoCore, KymoProbe, KymoStudio and kymocore for Python fit together

Project Role
KymoCore firmware library: capture and send measurements on the microcontroller
kymocore for Python this package: send measurements from Python
KymoProbe firmware and hardware examples for ESP32, Arduino and STM32
KymoStudio desktop app: receive, display, analyse, export

Documentation

License

Copyright (c) 2026 Christof Seidel. kymocore for Python is licensed under the MIT license: free for any use, including commercial projects, without disclosing your own source code.

Metadata

Release files for kymocore 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kymocore 0.2.0
File Size Uploaded Provenance Actions
kymocore-0.2.0.tar.gz 47.2 kB With provenance Details for kymocore-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kymocore 0.2.0
File Interpreter ABI Platform Actions
kymocore-0.2.0-py3-none-any.whl Python 3 none any Details for kymocore-0.2.0-py3-none-any.whl

Total release size: 72.4 kB

Release files / kymocore-0.2.0.tar.gz

Download URL kymocore-0.2.0.tar.gz
Size 47.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6326affee5a8739c9adf316fd6054c8aa6752064793121f02c23c5c1560ee262
BLAKE2b-256 checksum
How to use checksums
75d53750c91ef9f5a01894f66c88c2177a8ca4ec73890b049c8ba64624a348f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / kymocore-0.2.0-py3-none-any.whl

Download URL kymocore-0.2.0-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439d25e4d5ce6a31714d2f5e873d3ea182e3786c9bcacd3d2fb9bbfd61393ab1
BLAKE2b-256 checksum
How to use checksums
4f7647bb560050339b646ccdee6cdf674534869226e97e77c4137dab795aa108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for kymocore 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kymocore-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page