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

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-alpha3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 11.2 MB
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp38-none-win_amd64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp38-none-win_amd64.whl |
|---|---|
| Size | 917.8 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
06792eee7db1dcc42acef97546756c3049f2d2b8e009bcdb0dc04b83452c8ffe
|
|
BLAKE2b-256 checksum How to use checksums |
a0368acafe4798f7e0ba9575a89ea750ad72b67b98ddfbcc4094eced96f9f4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp38-cp38-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 999.5 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
88b58dff1b9a5291d7840cb9a1e71c3be63b39da7935053c27bd4679b41f441b
|
|
BLAKE2b-256 checksum How to use checksums |
d2f8bec3883ee71dc483d84f4c04b907caa1b5744ea5ac4b7d67ebe7dadb02b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp38-cp38-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp38-cp38-macosx_10_7_x86_64.whl |
|---|---|
| Size | 894.3 kB |
| Tags | CPython 3.8 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
0acc88b9eb3ae5a6dfb01841c1569b21ab5d9a471b3c50bfe87436da06073218
|
|
BLAKE2b-256 checksum How to use checksums |
07eb4f08e3caed325aaeb6ede417d8f8a2a5cbcf551cc5432411a659850c0f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp37-none-win_amd64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp37-none-win_amd64.whl |
|---|---|
| Size | 917.7 kB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a36b791d1ac3385973485764958b11cc1f50a4a378d7be2e84f31d67c345a921
|
|
BLAKE2b-256 checksum How to use checksums |
39c105e9a13678786c8d870356b00f51f2bec9a5161e158526d60fa8d1f0c8a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 999.5 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc83fdc6c9cbcc6ffe259eff54ce3c0ec858fa73924f9e5a96f98f262a5f4105
|
|
BLAKE2b-256 checksum How to use checksums |
8c0129263cef983ed613bdec528660adf83cbcfcb9331c4608c6f177cf772e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp37-cp37m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp37-cp37m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 894.3 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
d7df3f3ab4d118ca1a7cf4321df2a7af38403a640f4ddbff55f918e4c0d4f35c
|
|
BLAKE2b-256 checksum How to use checksums |
b876ac24b0bd53f684901a7cff82571208b6bd00773d0d300b869cedf20ffe56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp36-none-win_amd64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp36-none-win_amd64.whl |
|---|---|
| Size | 917.9 kB |
| Tags | CPython 3.6 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b2df4133dbc7dace9c124453fbf551def28b8a5f8ba78c011996e67bca4de173
|
|
BLAKE2b-256 checksum How to use checksums |
689bd08a1272f4ed25f2683032072d43e2a40fc5d538cf6d2022c9be19dd2e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 999.8 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
e9fb0edad9bb217912c6ae6cc3b490b7fba9df7baeb20e15a51ef9737e85b843
|
|
BLAKE2b-256 checksum How to use checksums |
a83385af21f40688bc9eec0eb41ae4863c9acf1cdf9cd6ef56270e3faf5c496c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp36-cp36m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp36-cp36m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 894.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
b19ceb7c32fac81077db7c44daa6a41f1ad820f249037bb61809cad4120ba966
|
|
BLAKE2b-256 checksum How to use checksums |
cf151527a2dbb1438d24a970ba7163df3302a6908eade16e75c902b661994ce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp35-none-win_amd64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp35-none-win_amd64.whl |
|---|---|
| Size | 917.7 kB |
| Tags | CPython 3.5 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
590cf35b8d6990077138c4ce644551f799a3d4d42fd3ea6d268e782b8ebd0063
|
|
BLAKE2b-256 checksum How to use checksums |
1db04ebfb62774f8fa2b922a88133072d3626c3eba9e3a296875e82d4414a6aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.5.4
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 999.3 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
1c094ae81ebb1d446ffbe8a79fffed15c8470cbbce087c436bcd2e1598918d98
|
|
BLAKE2b-256 checksum How to use checksums |
d41710079664e8d65c90f710fd03a42a9620a111d2bcf3e91fdfd47aef556301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.5.10
|
Release files / wasmer_compiler_cranelift-1.0.0_alpha3-cp35-cp35m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_cranelift-1.0.0_alpha3-cp35-cp35m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 894.1 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
52f7ec96923f3ef77c0db4ca610b7d71693cf0cfcadbcd338a9f138cd5a329db
|
|
BLAKE2b-256 checksum How to use checksums |
073d4cb2860628dc9e618ee92c890d172c54a106a0688b61749fe2944f5aeca3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.5.10
|
Security for wasmer-compiler-cranelift 1.0.0-alpha3
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.