You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Demos how to set up a python coding challenge that runs locally in the browser (no server-side untrusted code execution). Only one challenge is provided, but the configuration is stored as a dictionary in `challenge.py`, demonstrating how this can be adapted to support many challenges (in a database) readily.
3
+
This Demos how to set up a python coding challenge that runs locally in the browser (no server-side untrusted code execution). Only one challenge is provided, but the configuration is stored as a python dictionary, demonstrating how this can be adapted to support many challenges (in a database) readily.
4
+
5
+
## Key files
6
+
7
+
-`srcastro`: contains web-related assets.
8
+
-`srcpy`: contains source python programs that run via pyscript
9
+
-`main.py`: dispatches new worker threads to evaluate challenge code (any time the "run tests" button is clicked)
10
+
-`worker.py`: Worker thread program. Evaluates the submitted code for rules, then runs the implementation against test cases.
0 commit comments