wasmfunc 0.0.1

Creator: bradpython12

Last updated:

0 purchases

wasmfunc 0.0.1 Image
wasmfunc 0.0.1 Images

Languages

Categories

Add to Cart

Description:

wasmfunc 0.0.1

wasmfunc
wasmfunc is a Python to WebAssembly Compiler built for converting a typed subset of python code to a compiled Wasm binary.
Installation
pip install wasmfunc

How to use
Annotate your python function with Wasm types
# fib.py
@wasmfunc()
def fib_recursive(n: i32) -> i32:
if n <= 1:
return n
else:
return fib_recursive(n - 1) + fib_recursive(n - 2)

Then compile with
wasmfunc compile fib.py
# Or python -m wasmfunc compile fib.py

For more examples see examples.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.