Python Code
from pathlib import Path # Write a file to the virtual filesystem Path('/sandbox/hello.txt').write_text('Hello from Python in WASM!') # Read it back content = Path('/sandbox/hello.txt').read_text() # Create a directory and list it Path('/sandbox/data').mkdir(parents=True) Path('/sandbox/data/a.txt').write_text('alpha') Path('/sandbox/data/b.txt').write_text('beta') files = sorted([p.name for p in Path('/sandbox/data').iterdir()], key=str) {'content': content, 'files': files}
OS Call Log 0
Run code to see OS calls intercepted in real-time
Virtual Filesystem 0
VFS is empty. Run code or mount files below.
Output
Python result will appear here