I want to be able to use WebAssembly as a sandbox to safely run Python code from untrusted sources, within my existing Python applications.
I'd like to be able to:
- Pass in an untrusted string of Python code and have that evaluated
- Maybe also pass in initial variables to be used in the code - though hard-coding them would work OK too
- Have the code run in a sandboxed environment, with a timeout and memory limit
- The sandbox disallows network access and disk access - it can only access the variables passed in