Run Python scripts inside BitBurner! Uses Brython to interpret and run Python.
Example implementation in 1-brythonUsage.js
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 0-brythonEngine.js
firstrun 1-brythonUsage.js
second- Extend, cleanup, and use however you like!