mirror of
https://github.com/exo-explore/exo.git
synced 2026-09-12 21:38:59 -04:00
14 lines
287 B
Python
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)
|