Skip to main content

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)

Metadata

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)

Source distribution for pywasm3 0.5.0
File Size Uploaded Provenance Actions
pywasm3-0.5.0.tar.gz 75.4 kB Without provenance Details for pywasm3-0.5.0.tar.gz

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

Security for pywasm3 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page