wasm_exec icon indicating copy to clipboard operation
wasm_exec copied to clipboard

如何支持第三方库例如requests

Open shaohuzhang1 opened this issue 1 year ago • 0 comments

wasm = WasmExecutor() code = """ def bb(a): import requests return requests.get('https://www.baidu.com/').text

print(bb(**keywords)) """

print(wasm.exec(code, globals={}, locals={'keywords': {'a': 'a'}}).text)

shaohuzhang1 avatar Aug 09 '24 03:08 shaohuzhang1