A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/wasm3/pywasm3 below:

wasm3/pywasm3: Python bindings for Wasm3, a fast WebAssembly interpreter and the most universal WASM runtime

Python bindings for Wasm3, a fast WebAssembly interpreter and the most universal WASM runtime.

Main repository: Wasm3 project

# Latest release:
pip3 install pywasm3

# Bleeding edge version:
pip3 install https://github.com/wasm3/pywasm3/archive/main.tar.gz

# Or, if you have a local copy:
pip3 install .
import wasm3, base64

# WebAssembly binary
WASM = base64.b64decode("AGFzbQEAAAABBgFgAX4"
    "BfgMCAQAHBwEDZmliAAAKHwEdACAAQgJUBEAgAA"
    "8LIABCAn0QACAAQgF9EAB8Dws=")

env = wasm3.Environment()
rt  = env.new_runtime(2048)
mod = env.parse_module(WASM)
rt.load(mod)
wasm_fib = rt.find_function("fib")
result = wasm_fib(24)
print(result)                       # 46368

This project is released under The MIT License (MIT)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4