Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Zelos SDK

Zelos is the data platform for hardware systems. One platform to observe, control, test, and analyze your system in real time, from prototype to production.

Use the Zelos SDK to push data into the Zelos App, Zelos Agent or directly to Zelos Cloud.

Read data

connect() is the one import you need; zelos_sdk.agent re-exports the same names.

from zelos_sdk import connect

agent = connect("http://localhost:2300")
frame = agent.query("bus0/BMS_message/cells.*", start="-5m").short_names()

spread = frame["cell_0"] - frame["cell_1"]   # a series in V, on the frame's time axis
spread.abs().max()                           # prints its unit and what it measured
df = frame.ffill().to_pandas()               # a pandas DataFrame, when you want one

agent.check.that("bus0/BMS_message/status.pack_current", "<", 100)

A frame and a series answer to pandas' names, and carry units through arithmetic (power.to("kW"), energy.to("Wh")). Install zelos-sdk[notebook] for the pandas conversions.

Example: Logging Random Data

Install uv and save the file below as zelos_random.py and run uv run zelos_random.py to start streaming data live.

#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = [ "zelos-sdk" ]
# ///
import random
import time

import zelos_sdk

zelos_sdk.init()

src = zelos_sdk.TraceSource("example_source")
while True:
    src.log("example/message", {"value": random.randint(0, 10)})
    time.sleep(0.01)

Example: Logging Thermal Zones on Linux

Linux supports reading temperature sensors via sysfs. On a linux system, install uv and save the file below as temp_linux.py and run uv run temp_linux.py to start streaming data live.

#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = [ "zelos-sdk" ]
# ///
from pathlib import Path
import time

import zelos_sdk

zelos_sdk.init()

# Find all of our thermal zones from sysfs
thermal_zones = list(Path("/sys/class/thermal").glob("thermal_zone*"))

# Once per second, read the zone info and log it
src = zelos_sdk.TraceSource("linux_thermal")
while True:
    for zone_path in thermal_zones:
        # Read the zone info from sysfs
        zone_type = (zone_path / "type").read_text().strip()
        zone_temp_c = int((zone_path / "temp").read_text().strip()) / 1000.0

        # Log to the zelos sdk
        src.log(zone_path.name, {"type": zone_type, "temp_c": zone_temp_c})

    time.sleep(1)

Metadata

Release files for zelos-sdk 0.0.12a3

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

Built distributions (wheels)

Table of built distributions (wheels) for zelos-sdk 0.0.12a3
File
zelos_sdk-0.0.12a3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
zelos_sdk-0.0.12a3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 162.4 MB

Release files / zelos_sdk-0.0.12a3-cp310-abi3-win_amd64.whl

Download URL zelos_sdk-0.0.12a3-cp310-abi3-win_amd64.whl
Size 36.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0f35e6787e791db7142826123418defd2fa81d3754f53a42427a00eb6c948330
BLAKE2b-256 checksum
How to use checksums
1ba710dd10cad31e206bc21ca0fbfa768a8a2927c49ed6e548f8f0c7a4dfd6a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_x86_64.whl
Size 45.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
390facd1fa92ad8263c1bc356655e82a3d8442b0aa992f1ed34c50c299fd6c9e
BLAKE2b-256 checksum
How to use checksums
0cc8f9098ee84a188982e69bfde81420bf9583dc3b1b4aed8f2a72d8c2523e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL zelos_sdk-0.0.12a3-cp310-abi3-manylinux_2_28_aarch64.whl
Size 46.3 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
b5d55406fa44ace679e132e48155f722b5c01d8b43fa0f3540420f182dcfd969
BLAKE2b-256 checksum
How to use checksums
acad417708dcebe6b3b089b1b40ae799a830e3a016a4346b4a63ca5865fb2242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / zelos_sdk-0.0.12a3-cp310-abi3-macosx_11_0_arm64.whl

Download URL zelos_sdk-0.0.12a3-cp310-abi3-macosx_11_0_arm64.whl
Size 34.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dc538d61df57990881916344e9f731dec0fe75e6987ed24e3d8b0a102aff57f1
BLAKE2b-256 checksum
How to use checksums
288ff72db8dedeb8217f2327a51214fcdcac8399e4ed72042e3b1d6091d56d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.0.12a3 This release

4 release files

0.0.10

4 release files

0.0.9

4 release files

0.0.8

4 release files

0.0.7

4 release files

0.0.6

4 release files

0.0.5

4 release files

0.0.4

4 release files

0.0.3

4 release files

0.0.2

4 release files

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