This example demonstrates using the WASM Module in Go. It can be used with two WebAssembly VMs:
- wasmtime-py (see glue_wasmtime.py)
- wasmer-py (see glue_wasmer.py).
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.
Use virtual env
python -m venv env
source env/bin/activate
pip install -r requirements.txt
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