Skip to main content
Pre-release

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

Wasmer logo Wasmer Python 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/.

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-beta1

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-beta1
File
wasmer_compiler_cranelift-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-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_beta1-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-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_beta1-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-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_beta1-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64 Details

Total release size: 15.1 MB

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
d6d069ace5133b3fc84679609acd96a1a0df390ee56281bbefc17325ac318914
BLAKE2b-256 checksum
How to use checksums
67e4d6b3afc1191dab0aafd2eda05f87660a71ae9ccdc4aff9836cdbbe9e6888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

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

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp39-cp39-macosx_10_7_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
f685391eb94fd2a4ce3bb7ddb032b66f25ecce66c9f724263ea07fb350d17b59
BLAKE2b-256 checksum
How to use checksums
631e16b2801ed3add4edba15a253b8e82929fa2581c22bd4c0dc49e131556d76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5443c5188a2b8bcb3dc53685f9a5d035fb51dc57974ecf34d31ccf43886b7903
BLAKE2b-256 checksum
How to use checksums
c3a9e5fb27ef3b700e8c2193c9dcd5be387c64eb92b8e47b627da64747bfb017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

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

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp38-cp38-macosx_10_7_x86_64.whl
Size 1.4 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
75107013ee3535cb7416a2aa62c0e3342e2bc944b5524abc41b1e684f45492c7
BLAKE2b-256 checksum
How to use checksums
ff9a24fc5fde9614819eba92c42e242b486f5dde5b2aabee1b13eaf823521c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e6b527f8354673746b8fd0028a349f5719eb202c6178544855665271a0a9dfdd
BLAKE2b-256 checksum
How to use checksums
6b6958531053a1257473700d207964f9aaedc4ae59cd237619a70a74305901fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

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

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp37-cp37m-macosx_10_7_x86_64.whl
Size 1.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
8655a83159a995e1f030163e56f053dee3e6d84964252b1c929e3cbd621ccd96
BLAKE2b-256 checksum
How to use checksums
d09392134f4fa3ebc223e49b20087750c746b665a51fc7ee1c2ee8f01d5a5dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e186539b9a217ff099dbfc59e8410a1f9f6e31e06f90163750ef5614a96effda
BLAKE2b-256 checksum
How to use checksums
bccfe8b0f3958eaad760f18742150082b6b357a194b02fced0092306b3f6ed22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

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

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl
Size 1.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
00c5ee8bf613e8d337e4512bd0be325c0d6f23cf0ac00891c0b4d30bd3717951
BLAKE2b-256 checksum
How to use checksums
c326fe6d16296a977b7f908f2536fb5cceb5b1e96c61f195427659aff68d1970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
40a873071a20c20a18aa6988ae3e11c2d36751bd3d0d99e5b7165bf3433aeba5
BLAKE2b-256 checksum
How to use checksums
d2ed851457fb6de9efb41b426db9db5d364a70b97f53154a2c072e0c801b1517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl
Size 1.4 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
20bb5a288981ad224553271923b1bb42781ec8facc776662d36628d185ab017a
BLAKE2b-256 checksum
How to use checksums
5fb7f8d645e760649c3c52171e891b9666ee5f0dc9757ea6b83e913ddbc3d035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Security for wasmer-compiler-cranelift 1.0.0-beta1

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