Datasets:
File size: 371 Bytes
4ef198a | 1 2 3 4 5 6 7 8 9 | import sys, json, time
sys.path.insert(0, "/opt/drums/src/drumsd/python")
import drums
c = drums.connect("http://127.0.0.1:7070", open("/etc/drums/token").read().strip())
env = drums.Env(c, c.call("GET", f"/v1/slots/{sys.argv[1]}"))
k = env.fork(int(sys.argv[2]) if len(sys.argv) > 2 else 1)
print(json.dumps([x.record.get("timings") for x in k]))
import os; os._exit(0)
|