wasmer-compiler-cranelift
The Cranelift compiler for the `wasmer` package (to compile WebAssembly module)
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-craneliftuv
uv add wasmer-compiler-craneliftpoetry
poetry add wasmer-compiler-craneliftInstalling 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
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
wasmerExecutes WebAssembly modules from Python with a…
permissive · top 15,000 on PyPI
wasmtimeEmbeds the Wasmtime WebAssembly runtime in…
unclear · top 5,000 on PyPI
itkwasmProvides a Python interface to run itk-wasm…
permissive · top 15,000 on PyPI
hyperlight-sandbox-backend-wasmProvides a WebAssembly backend implementation…
permissive · top 15,000 on PyPI
qwasmDecodes and disassembles WebAssembly binary…
permissive · top 15,000 on PyPI
fastdiffFastdiff provides a fast diff algorithm…
permissive · top 15,000 on PyPI
quickjs-rsExecutes JavaScript code inside a WebAssembly…
permissive · top 15,000 on PyPI
pyodide-pyProvides core interpreter functionality for…
copyleft · top 15,000 on PyPI
NuitkaNuitka compiles Python code to C and then to…
agpl · top 15,000 on PyPI
jaxlibjaxlib is the compiled XLA backend that enables…
permissive · top 5,000 on PyPI