Run Python scripts inside BitBurner! Uses Brython to interpret and run Python.
Example implementation in example.py.txt
can invoke BitBurner-specific ns
functions
and properly handles async/await to avoid ns
promise race conditions.
-
Copy both scripts into your BitBurner install
-
run python.js example.py.txt
-
Extend, cleanup, and use however you like!