Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

arrisde/pywasm3

Repository files navigation

pywasm3

Python 3 bindings to wasm3 generated by CFFI.

Prerequisites

  • 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

Build

  • 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

Run tests

python -m unittest discover

Notes

  • 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.

About

Python3 bindings for wasm3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published