Skip to main content

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.1.0

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.1.0
File
wasmer_compiler_cranelift-1.1.0-py3-none-any.whl Python 3 none any Details
wasmer_compiler_cranelift-1.1.0-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp310-cp310-manylinux_2_24_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp39-cp39-manylinux_2_24_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.24+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp38-cp38-manylinux_2_24_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.24+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp37-cp37m-manylinux_2_24_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.24+ x86-64 Details
wasmer_compiler_cranelift-1.1.0-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details

Total release size: 22.7 MB

Release files / wasmer_compiler_cranelift-1.1.0-py3-none-any.whl

Download URL wasmer_compiler_cranelift-1.1.0-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
200fea80609cfb088457327acf66d5aa61f4c4f66b5a71133ada960b534c7355
BLAKE2b-256 checksum
How to use checksums
28fa26489c8f25470a3d50994aac8ebeabb2ca7f88874a15e0e77272b3a912c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp310-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp310-none-win_amd64.whl
Size 1.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
bdf75af9ef082e6aeb752550f694273340ece970b65099e0746db0f972760d11
BLAKE2b-256 checksum
How to use checksums
a146bf489a62c2f919ffcfce4b92c9d07e0257b14a1afd4fb122a7b64632c8ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp310-cp310-manylinux_2_24_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp310-cp310-manylinux_2_24_x86_64.whl
Size 1.9 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
405546ee864ac158a4107f374dfbb1c8d6cfb189829bdcd13050143a4bd98f28
BLAKE2b-256 checksum
How to use checksums
749b1cb2c909ef82f464afed1cd799cfcae95063fc3233c5140819e4b4ceee54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
9869910179f39696a020edc5689f7759257ac1cce569a7a0fcf340c59788baad
BLAKE2b-256 checksum
How to use checksums
c5cfe0ac8ec0dde10716668819eb894edddd15cece14fcb4c26ee82ed3d1f65e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp39-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp39-none-win_amd64.whl
Size 1.7 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
32fe38614fccc933da77ee4372904a5fa9c12b859209a2e4048a8284c4c371f2
BLAKE2b-256 checksum
How to use checksums
2737ef18f10d98055dfb992ffb8eafbdf19cedaf28e10037eeaa213760f0d138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp39-cp39-manylinux_2_24_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp39-cp39-manylinux_2_24_x86_64.whl
Size 1.9 MB
Tags CPython 3.9 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
2a4349b1ddd727bd46bc5ede741839dcfc5153c52f064a83998c4150d5d4a85c
BLAKE2b-256 checksum
How to use checksums
22e227122079b440e06c19596e74819fd11b613823ba666005971ad42ebf6e8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
Size 1.6 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9697ae082317a56776df8ff7df8c922eac38488ef38d3478fe5f0ca144c185ab
BLAKE2b-256 checksum
How to use checksums
58d459f83cc93f9197792deada522f681b399317672c3cbb7220608b0bf1f56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl
Size 1.7 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
ff25fc99ebafa04a6c271d08a90d17b927930e3019a2b333c7cfb48ba32c6f71
BLAKE2b-256 checksum
How to use checksums
ca1d3939962967d69d6bb1ac9af5a9adc5e91de4e9175db3e4519efaa3089c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp38-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp38-none-win_amd64.whl
Size 1.7 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
157d87cbd1d04adbad55b50cb4bedc28e444caf74797fd96df17390667e58699
BLAKE2b-256 checksum
How to use checksums
b2209ce82e8304f2d7aea0cc20e5edff6bbcba0db25ced227eff785fe0659f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp38-cp38-manylinux_2_24_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp38-cp38-manylinux_2_24_x86_64.whl
Size 1.9 MB
Tags CPython 3.8 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
bd03db5a916ead51b442c66acad38847dfe127cf90b2019b1680f1920c4f8d06
BLAKE2b-256 checksum
How to use checksums
cb21de4acefca40dc2577e122387924bc8ce3c6f64d852d84b3ae0ada2c3433b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp38-cp38-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp38-cp38-macosx_10_7_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
55a524985179f6b7b88ac973e8fac5a2574d3b125a966fba75fedd5a2525e484
BLAKE2b-256 checksum
How to use checksums
a87817379b136986bde52436baec888cbabe9b4978d897e1f0e59d259e999f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp37-none-win_amd64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp37-none-win_amd64.whl
Size 1.7 MB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
447285402e366a34667a674db70458c491acd6940b797c175c0b0027f48e64bb
BLAKE2b-256 checksum
How to use checksums
bb37f0310144b46a62d343e497b499b0d381a05504562958bc60261173ed4e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp37-cp37m-manylinux_2_24_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp37-cp37m-manylinux_2_24_x86_64.whl
Size 1.9 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
ff7dd5bd69030b63521c24583bf0f5457cd2580237340b91ce35370f72a4a1cc
BLAKE2b-256 checksum
How to use checksums
31f9e8715ea33f468b756a9584e5de2a0e6e2139c0ad8b840556e5738e00f033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / wasmer_compiler_cranelift-1.1.0-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_cranelift-1.1.0-cp37-cp37m-macosx_10_7_x86_64.whl
Size 1.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
7d9c782b7721789b16e303b7e70c59df370896dd62b77e2779e3a44b4e1aa20c
BLAKE2b-256 checksum
How to use checksums
dde2764ec90a14af189bee0b074f0a561a5465ab858325f2211dfb3a43ccd849
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for wasmer-compiler-cranelift 1.1.0

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