How about a CPython library that interacts with REPL?
Posted: Mon Aug 15, 2022 7:36 pm
I'm thinking something like:
or
Code: Select all
import repl_client
client = repl_client.serial("/dev/ttyUSB0", 115200)
assert 3 == client.eval("1 + 2")
Code: Select all
import repl_client
client = repl_client.websocket("ws://micropython.local:8266/", "secret")
assert 3 == client.eval("1 + 2")