Prerequsites: python >= 3.10
, pip >= 20.0.2
, poetry >= 1.3.2
.
make build
pip install dist/*.whl # install pykwasm globally
This command converts a binary Wasm module into the Kast format accepted by KWasm. After installing the package
with poetry install
, run the command with the file path to a binary Wasm file:
poetry run wasm2kast <path_to_binary.wasm>
Use make
to run common tasks (see the Makefile for a complete list of available targets).
make build
: Build wheelmake check
: Check code stylemake format
: Format codemake test-unit
: Run unit tests
For interactive use, spawn a shell with poetry shell
(after poetry install
), then run an interpreter.