skillfed

wasmer-compiler-cranelift

The Cranelift compiler for the `wasmer` package (to compile WebAssembly module)

wasmer-compiler-cranelift v1.1.0 521.6K downloads/30d#6,206 on PyPI2,149
Permissive license DORMANT released

What it is and what it does

wasmer_compiler_cranelift is a compiler plugin that provides Cranelift as a JIT or native code compiler for WebAssembly execution. It plugs into the engine abstraction to enable loading, compiling, and executing WebAssembly modules. You pass its Compiler class to an engine instance, and it handles the compilation step. The package has no runtime dependencies and is one of multiple compiler options available.

The package is dormant—last updated January 2022, with the last repository commit in September 2023. It remains available and functional for existing users, but receives no active maintenance or updates.

Use it for:

  • Execute WebAssembly modules within a Python application using Cranelift as the JIT compiler.
  • Build Python-based tools that load and run .wasm files without spawning external processes.
  • Prototype or test WebAssembly code from Python before deploying to production.
  • Integrate lightweight, sandboxed computation into Python services by running pre-compiled wasm modules.

Worth the install?

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

Provides the Cranelift compiler backend for WebAssembly compilation and execution in Python applications.

Yes, if you need to run WebAssembly in Python and are comfortable with dormant maintenance. The package has no known vulnerabilities, low install friction, and permissive licensing. However, verify that Cranelift meets your performance and compatibility needs—the package has not been updated since January 2022, so check whether recent WebAssembly features or security patches matter for your use case.

Install

wasmer-compiler-cranelift on PyPI

pip

pip install wasmer-compiler-cranelift

uv

uv add wasmer-compiler-cranelift

poetry

poetry add wasmer-compiler-cranelift

Installing wasmer-compiler-cranelift

Before you install

Low install friction with a pure wheel distribution. Maintenance is dormant—last release was in January 2022 and the last commit was September 2023, over 1680 days ago. The repository remains active but the package itself is not receiving updates.

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial or private projects without restriction.

Quickstart

pip install wasmer_compiler_cranelift

from wasmer_compiler_cranelift import Compiler
from wasmer import engine, Store, Module, Instance

store = Store(engine.JIT(Compiler))
module = Module(store, open('my_program.wasm', 'rb').read())
instance = Instance(module)
print(instance.exports.sum(1, 2))

This package is a compiler plugin and requires the wasmer package to be installed separately to function.

Verify before relying

  • Whether the package works with Python versions beyond 3.10 (classifiers list 3.7–3.10 but current Python support is unspecified).
  • Performance characteristics of Cranelift relative to other available compiler options for typical workloads.
  • Whether dormant maintenance status affects compatibility with recent WebAssembly specification changes or security patches.

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 521,642/month — #6,206 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wasmer_compiler_cranelift-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 compiler pythonwasm runtime craneliftcompile wasm modules pythonwebassembly jit enginewasm execution pythoncranelift compiler backend
webassemblycompilerruntime

More Software Development packages