The fastest WebAssembly interpreter
Project description
pywasm3
Python bindings for Wasm3, the fastest WebAssembly interpreter
Main repository: Wasm3 project
Install
# 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 .
Usage example
import wasm3, base64
# WebAssembly binary
WASM = base64.b64decode("AGFzbQEAAAABBgFgAX4"
"BfgMCAQAHBwEDZmliAAAKHwEdACAAQgJUBEAgAA"
"8LIABCAn0QACAAQgF9EAB8Dws=")
env = wasm3.Environment()
rt = env.new_runtime(1024)
mod = env.parse_module(WASM)
rt.load(mod)
wasm_fib = rt.find_function("fib")
result = wasm_fib(24)
print(result) # 46368
License
This project is released under The MIT License (MIT)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywasm3-0.5.0.tar.gz
(75.4 kB
view details)
File details
Details for the file pywasm3-0.5.0.tar.gz
.
File metadata
- Download URL: pywasm3-0.5.0.tar.gz
- Upload date:
- Size: 75.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a47c8a39f7f6ae71b3316b2e5d86c9d0db6e771a65f09a86e4d4aa3a19aefcc |
|
MD5 | 6e87d6a1f654b1e21d73bc6a57625f9b |
|
BLAKE2b-256 | 40d95c4d0f09aa47e19f192feafba535f947ea547d24f1f5aaffdfa7bfe9fa78 |