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)
Release files for pywasm3 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pywasm3-0.5.0.tar.gz | 75.4 kB | Details |
Release files / pywasm3-0.5.0.tar.gz
| Download URL | pywasm3-0.5.0.tar.gz |
|---|---|
| Size | 75.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a47c8a39f7f6ae71b3316b2e5d86c9d0db6e771a65f09a86e4d4aa3a19aefcc
|
|
BLAKE2b-256 checksum How to use checksums |
40d95c4d0f09aa47e19f192feafba535f947ea547d24f1f5aaffdfa7bfe9fa78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|