diff --git a/OS/01/computer/kernel_watcher.py b/OS/01/computer/kernel_watcher.py index e69de29..a4bc2a2 100644 --- a/OS/01/computer/kernel_watcher.py +++ b/OS/01/computer/kernel_watcher.py @@ -0,0 +1,4 @@ +""" +Watches the kernel. When it sees something that passes a filter, +it sends POST request with that to /computer. +""" \ No newline at end of file diff --git a/OS/01/computer/run.py b/OS/01/computer/run.py index e69de29..7a41a1e 100644 --- a/OS/01/computer/run.py +++ b/OS/01/computer/run.py @@ -0,0 +1,9 @@ +""" +Exposes a SSE streaming server endpoint at /run, which recieves language and code, +and streams the output. +""" + +from interpreter import interpreter + +for chunk in interpreter.run(language, code, stream=True): + stream(chunk) \ No newline at end of file