Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1011 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 1011 Bytes

Smartcore-WASI Python example

This example demonstrates using the WASM Module in Go. It can be used with two WebAssembly VMs:

There are two example scripts: run-device.py and run.py. run-device.py includes an integration with Microsoft Azure to receive realtime updates from IoT Hub regarding a new version of the WASM Package. For reference, the WASM Package is included in lib/python.

Install

Use virtual env

python -m venv env
source env/bin/activate
pip install -r requirements.txt

Run

There are two examples to runtimes whose supported platforms are considered: One uses Wasmer and the other one uses Wasmtime as the underlying WASM VM.

python run.py
python run-device.py