wasm-micro-runtime/language-bindings/python/wamr-api
Qiang 1596ed2270
The Python language-binding needs python>=3.9 (#2228)
Update python language binding setup.py and document
Make compile.sh executable: `chmod +x compile.sh`
2023-05-24 08:15:28 +08:00
..
samples The Python language-binding needs python>=3.9 (#2228) 2023-05-24 08:15:28 +08:00
README.md The Python language-binding needs python>=3.9 (#2228) 2023-05-24 08:15:28 +08:00
requirements.txt Add WAMR API bindings in Python (#1959) 2023-02-16 15:21:28 +08:00

WARM API

  • Notice: The python package wamr.wamrapi.wamr need python >= 3.9.

Setup

Pre-requisites

Install requirements,

pip install -r requirements.txt

Build native lib and update bindings

The following command builds the iwasm library and generates the Python bindings,

bash language-bindings/python/utils/create_lib.sh

This will build and copy libiwasm into the package.

Examples

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

python samples/main.py