Skip to main content

kymoscope

Stream live, end-to-end encrypted telemetry to Kymoscope from Python.

Requires Python 3.9 or later.

pip install kymoscope

Example

import math, time
from kymoscope import LiveStream

API_KEY = "kymoscope_..."   # Account -> API & real-time streaming, or a project's API key
# state_path keeps this sender's identity, so a restart needs no new approval
with LiveStream(API_KEY, "Rig A", state_path="kymoscope-state.json") as stream:
    print("stream id:", stream.stream_id)
    while True:
        t = time.time()           # absolute (Unix seconds)
        stream.send([{"t": t, "signals": [
            {"name": "speed", "unit": "m/s", "value": 50 + 10 * math.sin(t)},
        ]}])
        time.sleep(1 / 60)

In an end-to-end encrypted project, the first run waits until a project member's browser approves the sender; after that it publishes on its own.

Keep every sample when the connection drops

with LiveStream(API_KEY, "Rig A", state_path="kymoscope-state.json",
                buffer_path="kymoscope-buffer", buffer_max_mb=2048) as stream:
    ...

With buffer_path (a folder), the stream always sends, also with nobody watching, so a cloud recording keeps everything. While the relay is unreachable it keeps the encrypted messages on disk, then sends them in order when the relay is back, with the bandwidth live data leaves spare. Viewers see that data in the recording, not in the live view. A crash can send a few messages twice. buffer_max_mb caps the disk used; when it is full, new samples are dropped and counted in stream.buffer_dropped. buffer_min_free_mb (default 0, off) also stops buffering when the disk has less free space than that. Since 0.3.0 the stream sends the compact format by default (4–8× less data); block_format=False sends the classic format for viewers on SDK versions before 0.2.0 or self-hosted relays before 0.2.0 (buffer_path always uses the compact one). With buffer_path, send absolute times (time.time()), so data sent after a restart lands in the right place in the recording.

The headless viewer (kymoscope.viewer) needs msgpack: pip install 'kymoscope[viewer]'.

Full documentation: https://kymoscope.com/docs/live

Metadata

Release files for kymoscope 0.4.1

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

Source distribution (sdist)

Source distribution for kymoscope 0.4.1
File Size Uploaded Provenance Actions
kymoscope-0.4.1.tar.gz 50.1 kB With provenance Details for kymoscope-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 83.5 kB

Release files / kymoscope-0.4.1.tar.gz

Download URL kymoscope-0.4.1.tar.gz
Size 50.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8a4ee47addac833075fdc19b2d3a1fa1f28f36afe89512e5db0a5a687043bacb
BLAKE2b-256 checksum
How to use checksums
db2abb5b39e4a87fb5c443a8eb04269899f8c5ce435414575f29cf3cda66c572
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 Oct 24, 2026.

Transparency log

Release files / kymoscope-0.4.1-py3-none-any.whl

Download URL kymoscope-0.4.1-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ef85c9292b825dddbdcc62fd6b140415e50e4052d64fc7e4f8485271f94f851
BLAKE2b-256 checksum
How to use checksums
a12939edefd4023c5f6c944fa57b921bd5fe8907eb88739c1cf707b3ea59b1e0
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 Oct 24, 2026.

Transparency log

Security for kymoscope 0.4.1

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 kymoscope-0.4.1.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 Oct 24, 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.4.1 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