ZeqObserver Agent — Python
Same wire contract as the JS agent, ported for Python runtimes — AI/ML pipelines, robotics control loops, lab equipment, scientific instruments, edge inference servers. Provides ZeqObserver class with observe()/flush()/shutdown(); background flush thread fires every Zeqond; file-based outbox at ~/.zeq-observer-outbox.json (cap 200) replays on reconnect; heartbeat thread keeps device's audit history continuous; optional phase-locked AES-256-GCM via the cryptography library. Local HF6/HF8/HF12/HF14/HF18 forensic operators computed per emission. Wire format JSON over HTTPS — language-agnostic. Threadsafe.
| Endpoint | GET /zeq-observer-client.py |
| Auth | none |
| Rate limit | static asset |
| Category | compute |
Parameters
No parameters.
Returns
Single-file Python module. Usage: from zeq_observer_client import ZeqObserver; obs = ZeqObserver(slug='…', key='zsm_…'); obs.observe('inference_started', meta={'model': 'gpt-4o'})
Example
curl -sS \
"https://zeqsdk.com/zeq-observer-client.py"
This protocol is a named building block — one of the operations you
compose inside a state contract. Call it directly with
the request above, or invoke it from a contract that fires on your machine's
clock. Browse the whole library at GET /api/protocols; fetch this one at
GET /api/protocols/zeq-observer-client-py.