have you tried e2b.dev? it runs lightweight sandboxes using firecracker, python and third-party packages
disclaimer: i work there
disclaimer: i work there
this way, we're able to run millions secure sandbox environments
i appreciate asking though and will be forwarding to my team to see if we can come up with a way for users to emulate the execution locally
source code: https://github.com/e2b-dev/infra
As such you're probably not the right fit for me, I should be looking more at things like wasmer and wasmtime.