tonibofarull 571c057549 wamr-python: Enable debugging WASM and grant dir access (#2449) před 2 roky
..
samples 571c057549 wamr-python: Enable debugging WASM and grant dir access (#2449) před 2 roky
README.md 571c057549 wamr-python: Enable debugging WASM and grant dir access (#2449) před 2 roky
requirements.txt 3cc132e8fc Add WAMR API bindings in Python (#1959) před 2 roky

README.md

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.

Samples

  • basic: Demonstrating how to use basic python bindings.
  • native-symbol: Desmostrate how to call WASM from Python and how to export Python functions into WASM.