This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/language-bindings/python/wamr-api
2023-02-21 18:36:03 +08:00
..
samples language-bindings/python/wamr-api: Fix a sample (#1977) 2023-02-21 18:36:03 +08:00
README.md Add WAMR API bindings in Python (#1959) 2023-02-16 15:21:28 +08:00
requirements.txt Add WAMR API bindings in Python (#1959) 2023-02-16 15:21:28 +08:00

WARM API

Examples

Copy in language-bindings/python/wamr/libs the library libiwasm generated from product-mini/platforms.

There is a simple example to show how to use bindings.

python samples/main.py

Update WAMR API bindings

Install requirements,

pip install -r requirements.txt

Run the following command,

ctypesgen ../../../../core/iwasm/include/wasm_export.h -l ../libs/libiwasm.so -o iwasm.py