Skip to content

如何支持第三方库例如requests #25

@shaohuzhang1

Description

@shaohuzhang1

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions