Files
exo/tmp/state_proxy.py
T
2026-05-07 15:36:03 +01:00

14 lines
287 B
Python

from exo_pyo3_bindings import StateProxy
import anyio
async def main():
sp = await StateProxy.init()
while True:
data = await sp.snapshot()
if data != "{}":
print(data)
await anyio.sleep(1)
if __name__ == "__main__":
anyio.run(main)