Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zeno_local-0.1.3.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeno_local-0.1.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

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

Hashes for zeno_local-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f20fd3cf91e46cb8534ef9df8c2fe612960547276204e2aece15aa06d9246ac9
MD5 cd52c40833d427d982139b86ee49dbf3
BLAKE2b-256 cb64ff547354b27eabeccdd3ecdb0d5cad20a7801b4c033fccd3d788c85fce6c

See more details on using hashes here.

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

Hashes for zeno_local-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33e8cfd049d4cd55904430de31b7706b46b60f9b7d03ae0f6983f929f32dc865
MD5 a364b2cd007852b720016ceaa6f00cde
BLAKE2b-256 0d79cd969dc152148d8016599660e9c603aa9c225c52b1279b912bb0cfc49179

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page