skillfed

wasmer

Python extension to run WebAssembly binaries

wasmer v1.1.0 556.7K downloads/30d#6,017 on PyPI2,149
Permissive license DORMANT released

What it is and what it does

Wasmer is a WebAssembly runtime for Python that compiles and executes WASM binaries in a sandboxed environment. It wraps the Wasmer engine (written in Rust) and exposes a Python API that mirrors the standard WebAssembly API, allowing you to load WASM modules, instantiate them, and call their exported functions from Python code.

The package itself is headless—it cannot compile WASM on its own and instead relies on separate compiler packages to handle compilation. Once a module is compiled, it can be executed via the JIT or Native engine. The runtime handles memory safety and sandboxing automatically, so WASM code runs isolated from the host Python process.

Use it for:

  • Execute performance-critical algorithms written in compiled languages without rewriting in Python.
  • Run untrusted code safely in a sandboxed WASM environment while maintaining isolation from the host system.
  • Integrate blockchain or smart-contract logic into Python applications.
  • Deploy compiled WASM modules across different platforms using Python as the host language.
  • Prototype or test WASM modules during development using Python tooling.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Executes WebAssembly modules from Python with a complete runtime that compiles and runs WASM binaries safely and sandboxed.

Yes, if you need to run WebAssembly modules from Python and can accept a dormant project. The package is stable and has no known vulnerabilities, but the lack of releases since 2022-01-07 means no bug fixes or compatibility updates for newer Python or system libraries. Suitable for production use of existing WASM code, but not recommended for new projects requiring ongoing maintenance or support.

Install

wasmer on PyPI

pip

pip install wasmer

uv

uv add wasmer

poetry

poetry add wasmer

Installing wasmer

Before you install

Low friction installation via pure-wheel distribution. However, the project is dormant—last release was 2022-01-07 and last commit 2023-09-17, with no recent maintenance activity. Suitable for stable use cases but not for active development or ongoing support.

License in practice

Licensed under MIT (permissive), allowing use in commercial and proprietary projects with minimal restrictions.

Quickstart

pip install wasmer==1.1.0

from wasmer import engine, Store, Module, Instance

store = Store(engine.JIT())
module = Module(store, open('simple.wasm', 'rb').read())
instance = Instance(module)
result = instance.exports.sum(5, 37)

Requires a separate compiler package to compile WASM modules; the base wasmer package alone cannot compile, only execute pre-compiled modules.

Verify before relying

  • Whether the dormant status (no releases since 2022-01-07) affects compatibility with modern Python or system libraries.
  • Whether the fallback py3-none-any wheel gracefully handles unsupported platforms or raises errors at import time.
  • Current state of available compiler packages and whether they remain actively maintained.

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 1,680 days since the last release
Last repo commit
First released
Downloads 556,723/month — #6,017 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wasmer-1.1.0-py3-none-any.whl

Keywords: python, extension, webassembly

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: RustTopic :: Software DevelopmentTopic :: Software Development :: CompilersTopic :: Software Development :: Interpreters

Tags

webassembly runtime pythonrun wasm modules pythonexecute webassembly codewasm interpreter pythonwebassembly sandbox executioncompile and run wasmpython webassembly bindings
webassemblysandboxing

More Software Development packages