Local companion daemon that exposes your installed humex to the zeno cloud UI (zeno's ?mode=local).
Project description
zeno-local
A small local companion daemon for the zeno cloud UI. It imports the humex library you've installed and exposes it over a loopback HTTP server (the Zeno Compute Protocol) so the cloud-hosted zeno SPA can run simulate / evaluate / import / export against your local humex — including any custom monitors, operators, or converters you've installed.
humex stays a pure library (it does not serve). zeno-local is the process
that owns the server.
Install
pip install zeno-local # installs into the same env as your humex
humex is a dependency, so it comes along — but if you want to use your own
(modified / customized) humex, install it in the same environment first, or
pip install -e your humex checkout there.
Run
Quick start from a checkout (sets up a venv, installs zeno-local + humex, runs):
scripts/start.sh # http://127.0.0.1:8900
PORT=9100 scripts/start.sh # different port
VENV=../zeno/.venv scripts/start.sh # reuse an existing venv (and its converters)
Or run the installed CLI directly:
zeno-local # http://127.0.0.1:8900
zeno-local --port 9100 --cors-origin https://zeno.dev.zerothlaw.io
Then open zeno with ?mode=local (and ?localUrl= if you changed the
host/port). zeno's "compute source" selector will route everything through this
server instead of the in-browser Pyodide runtime.
Browser support
An HTTPS-deployed zeno reaching http://localhost works in Chrome and
Firefox (loopback mixed-content exemption + Chrome Private Network Access
headers are handled). Safari blocks it — use Chrome/Firefox, or run zeno over
http://localhost too.
Endpoints (Zeno Compute Protocol, v1)
GET /health · POST /parse-yaml · POST /test-dag · POST /import-package
(raw .hpkg bytes) · POST /run-simulation · POST /evaluate-metrics ·
POST /build-hpkg. Per-tab state is keyed by the X-Humex-Session header.
Roadmap: filesystem endpoints (
/fs/*) and converter endpoints (/converters,/convert) so the UI can browse local dataset directories, run native converters, and write outputs back to disk — the capabilities the in-browser runtime fundamentally can't provide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zeno_local-0.1.3.tar.gz.
File metadata
- Download URL: zeno_local-0.1.3.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f20fd3cf91e46cb8534ef9df8c2fe612960547276204e2aece15aa06d9246ac9
|
|
| MD5 |
cd52c40833d427d982139b86ee49dbf3
|
|
| BLAKE2b-256 |
cb64ff547354b27eabeccdd3ecdb0d5cad20a7801b4c033fccd3d788c85fce6c
|
File details
Details for the file zeno_local-0.1.3-py3-none-any.whl.
File metadata
- Download URL: zeno_local-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33e8cfd049d4cd55904430de31b7706b46b60f9b7d03ae0f6983f929f32dc865
|
|
| MD5 |
a364b2cd007852b720016ceaa6f00cde
|
|
| BLAKE2b-256 |
0d79cd969dc152148d8016599660e9c603aa9c225c52b1279b912bb0cfc49179
|