Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Wasmer logo Wasmer Python, the Cranelift compiler PyPI version Wasmer Python Documentation Wasmer PyPI downloads Wasmer Slack Channel

wasmer is a complete and mature WebAssembly runtime for Python. wasmer_compiler_cranelift provides the Cranelift compiler to wasmer, so that wasmer is able to compile WebAssembly module.

Other compilers exist:

  • wasmer_compiler_llvm,
  • wasmer_compiler_singlepass.

To get a more complete view, please see the documentation of the wasmer package itself.

Install

This package must be used with the wasmer package, thus:

$ pip install wasmer
$ pip install wasmer_compiler_cranelift

Usage

Any engines in wasmer.engine can take the wasmer_compiler_cranelift.Compiler class as argument:

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

# Let's use the Cranelift compiler with the JIT engine…
store = Store(engine.JIT(Compiler))

# … or with the native engine!
store = Store(engine.Native(Compiler))

# And now, compile the module.
module = Module(store, open('my_program.wasm', 'rb').read())

# Now it's compiled, let's instantiate it.
instance = Instance(module)

# And get fun, for example by calling the `sum` exported function!
print(instance.exports.sum(1, 2))

Documentation

Browse the documentation at https://wasmerio.github.io/wasmer-python/api/wasmer_compiler_cranelift/.

Alternatively, run just build compiler-cranelift followed by just doc to generate the documentation inside docs/api/wasmer_compiler_cranelift.html.

Metadata

Release files for wasmer-compiler-cranelift 1.0.0-beta2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for wasmer-compiler-cranelift 1.0.0-beta2
File
wasmer_compiler_cranelift-1.0.0_beta2-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details

Total release size: 18.0 MB

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp39-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp39-none-win_amd64.whl
Size 1.5 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
ba0541e79ddf4fd4bfa93d507141b1f3fe51458e33ef6b0ca5be0da6bef4e0d8
BLAKE2b-256 checksum
How to use checksums
6c1e85df9cd00ff92af9f457eca611fbe59b9914c72f52b449f60ccf623e0030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-manylinux2010_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-manylinux2010_x86_64.whl
Size 1.6 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
ceef0e1c3f0cb9178077237e1007122324f0d841450b6cd0ee1df96438ed4da7
BLAKE2b-256 checksum
How to use checksums
f496307b9f4d1f1925e6658af809cf5f75b8df00ac54494b8a65618b3258d513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp39-cp39-macosx_10_7_x86_64.whl
Size 1.5 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
749285060ccfb9ed27d9df71467e2e139d4f2b039126c5f15fbbbbb664138969
BLAKE2b-256 checksum
How to use checksums
71088edbb57fd510197f3fdc1cfca67fc3c79787c5c4407d05d1c77831620032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp38-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp38-none-win_amd64.whl
Size 1.5 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
465e50852041febdace6c0b86642295dc6b3e800aee658629504b7461d0d3726
BLAKE2b-256 checksum
How to use checksums
b76d9523a43888a42b6a3101db7156ce14415a239b9d006c95c8fb672dd47bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-manylinux2010_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-manylinux2010_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
41c46c68468f9620cf9d7a93d093535dc06a831b6587437eb1e51c6bbea10c1b
BLAKE2b-256 checksum
How to use checksums
54e54bec581dd3b7c6d5a78eefda1e8dad8fde66592fa43f51862ae41a4b2bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp38-cp38-macosx_10_7_x86_64.whl
Size 1.5 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
cba15cec80aea1fa57a588c6d1c5102a1a779b486e1ce64aef50808fcc52e944
BLAKE2b-256 checksum
How to use checksums
c09668983d87d9f20119f4d82b98f8956bbcb4522f7b9a24d8e3d2998773303d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp37-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp37-none-win_amd64.whl
Size 1.5 MB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
29c379d0543b0b5e7b32b11e743d7ad123d8de782e72e0658050b484101ac6a0
BLAKE2b-256 checksum
How to use checksums
48c671133bcc70ac7904b5f0ffe319795dc9ff4973ba177b887edad7f85dc3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-manylinux2010_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-manylinux2010_x86_64.whl
Size 1.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
01469aee216669dc5cfc6b28adfbc3a030b0aeb081992aa06416766b12f1ae0f
BLAKE2b-256 checksum
How to use checksums
f5dfb10c1fe51806cbaeacb48c9458afbc66ad047ef01873b6e9dfd40d59bebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp37-cp37m-macosx_10_7_x86_64.whl
Size 1.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
07f574c176ab27081958dfd4a5c033f11bccd2d8e66599d9b326a4ed05da1b9e
BLAKE2b-256 checksum
How to use checksums
fbdceb090d9e2dfbc6e04a4586e707b49223e417e9cbb1a9ca4aa1605463be2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp36-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp36-none-win_amd64.whl
Size 1.5 MB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
72ed97e892b50f8b0b3692ab3af98c819b49e31b6980b71aa33e5868173ec26d
BLAKE2b-256 checksum
How to use checksums
1f7e9bb9111e51ebdd64362666ba732cfa1f0d91faf5e260ffb8436cac7b0415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-manylinux2010_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-manylinux2010_x86_64.whl
Size 1.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5626fb32659f30bd6ca250c8b4f72638b6866fa575f31dc979614d63f4f55844
BLAKE2b-256 checksum
How to use checksums
3b149289c1cc02e5644ec605c5a90da08e9bfca29ac1c9d80fcf3d1e4bd2586b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta2-cp36-cp36m-macosx_10_7_x86_64.whl
Size 1.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
47f73345fa8818cea58c23aeb109db89b72f072dd94986cc300f6c1a294541b1
BLAKE2b-256 checksum
How to use checksums
af620c509de8ace1f5b9251c69ea0b3bb544643e05f36ac98a5bba9721ff7d15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Security for wasmer-compiler-cranelift 1.0.0-beta2

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