Python 3 bindings to wasm3 generated by CFFI.
- CPython >= 3.5
- CMake >= 3.4.0
- C compiler that can build wasm3 (e.g. GCC, Clang, MSVC); see Wasm3 development notes
- build tool supported by CMake, e.g. GNU make, Ninja, VS2017
- Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
- Build pywasm3:
python setup.py install
python -m unittest discover
- Currently pywasm3 consists of CFFI glue code for calling wasm3 from Python, it does not implement a Python-friendly API. See the test code and CFFI docs for how to invoke wasm3 functions from Python.