Skip to main content

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")
df = frame.ffill().short_names().to_pandas()

soc = frame.series("cell_0") / frame.series("cell_1")
agent.check.that("bus0/BMS_message/status.pack_current", "<", 100)

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)

Release files for zelos-sdk 0.0.11

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.11
File
zelos_sdk-0.0.11-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
zelos_sdk-0.0.11-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 161.2 MB

Release files / zelos_sdk-0.0.11-cp310-abi3-win_amd64.whl

Download URL zelos_sdk-0.0.11-cp310-abi3-win_amd64.whl
Size 36.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4e25586b06a8998520d6f48fa591564d58366dc841ec8f400617346cef65e7c9
BLAKE2b-256 checksum
How to use checksums
39a11a972daae06d0f140c821e0cfad8ab6d01fa9cfd382b439b1d2564f2afd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_x86_64.whl
Size 45.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
39f8b1e82fe36844c234fee204267debeb1390c42ad98c57863129ca47acd026
BLAKE2b-256 checksum
How to use checksums
0ba113d9bbb3faaaa8c4791ed45033794be8150c3b9d24de9606e1845ee9de9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL zelos_sdk-0.0.11-cp310-abi3-manylinux_2_28_aarch64.whl
Size 46.0 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d2c2dbaf8356fb3bf1fa873b454762d1fe15264da2bad36a2a30ff45eca0ee33
BLAKE2b-256 checksum
How to use checksums
ea90bc9059bbe175e086202ff265ecd0aff2d6e8ba7e2f36a504a7e1ecf2cf62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / zelos_sdk-0.0.11-cp310-abi3-macosx_11_0_arm64.whl

Download URL zelos_sdk-0.0.11-cp310-abi3-macosx_11_0_arm64.whl
Size 33.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
984231039e251c8ab52fb418c5525a51bbff0b891b936093287054595aef6fc4
BLAKE2b-256 checksum
How to use checksums
65e692a6b164ef20ca1cae01029dcc974af6a556f088196ddfc97ce7e70eb818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7
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