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_llvm provides the LLVM compiler to wasmer, so that wasmer is able to compile WebAssembly module.

Other compilers exist:

  • wasmer_compiler_cranelift,
  • 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_llvm

Usage

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

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

# Let's use the LLVM 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-llvm followed by just doc to generate the documentation inside docs/api/wasmer_compiler_llvm.html.

Metadata

Release files for wasmer-compiler-llvm 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-llvm 1.0.0-beta1
File
wasmer_compiler_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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: 121.0 MB

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

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl
Size 13.5 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c1db9758b6437e45d04abcafc440fe83824dcefd21c57a01e724043ad5b28034
BLAKE2b-256 checksum
How to use checksums
f8793ab157ca02d39b81debf1f02b2e3d7055a1cbaf02e2f92f46276b71d9daa
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_llvm-1.0.0_beta1-cp39-cp39-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp39-cp39-macosx_10_7_x86_64.whl
Size 10.7 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
fdd85f75e9d5afcfbd7fb204ba817d757216951d4f2cd208bb822c6c6fa2c507
BLAKE2b-256 checksum
How to use checksums
0ad295366f5ae74d3bd6930f548d0090d1d43a90eb8518b999728c0d79f9f3e7
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_llvm-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl
Size 13.5 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e318b001724562ea115e3b279deeaec69ce5723c97413bd094605838abdb57be
BLAKE2b-256 checksum
How to use checksums
aa57bddd1a2544fe9278189eb13a2b9e41381887f753aba0bfaddf45ad298cc5
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_llvm-1.0.0_beta1-cp38-cp38-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp38-cp38-macosx_10_7_x86_64.whl
Size 10.7 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
d873215d3f853a5d6bef16345dadd8ae54e04fc58cdc10e4886181a4dba5c738
BLAKE2b-256 checksum
How to use checksums
0a2d17d6a01596b95c435f40a512aa81a1d53ed3edf0fa13477da250e547e5a2
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_llvm-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl
Size 13.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
b635a92a7061bc61f6f441f330375b9e6bd150d81bf215d5a4113f42ed084a95
BLAKE2b-256 checksum
How to use checksums
27c108e491246c82faca11264a2f42bacb53f73801b34e24d6bf83d47ba95003
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_llvm-1.0.0_beta1-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp37-cp37m-macosx_10_7_x86_64.whl
Size 10.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
4990e2e79fc9a7418fab85df94d9cc9afdf44429cfdf59d3e070215cfb8da530
BLAKE2b-256 checksum
How to use checksums
2d6edd595621b881f45040b04166b403de0b6a434842cb2718bd976a59593023
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_llvm-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl
Size 13.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
dc89ec8b1ef4efb978e2b5c053f748d40aa8e00a321252e4003fd86be515c894
BLAKE2b-256 checksum
How to use checksums
6426bd00e690e219d6a6c1813d991ef7d09ce56068365d4e1aa96681b3e05ba5
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_llvm-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl
Size 10.7 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
2f71d89b7b1b22836f77a62c861ae3a3d95c73c923a9df24f9e05837f9a704e2
BLAKE2b-256 checksum
How to use checksums
b442814012080a8febeb7f62491eb227ecbffb6961e7c9584eced85d885b4f9d
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_llvm-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl
Size 13.5 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
fe792ac966043ee1f2005e8020f7f124551baf9ece2a4f2858a28e23cb85f90f
BLAKE2b-256 checksum
How to use checksums
f6cc0bf3cf5b1eb6bc9cc03764cee67c0c39295358c509dafbf4a579ce4c07f1
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_llvm-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl
Size 10.7 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
d3beb7af14a12f58bff7ea731e31fff7a29ed9f61d6b6fec7da3257927209f35
BLAKE2b-256 checksum
How to use checksums
6d1953468192a2a020375cd602ffb8b8fe07ccf1a558f66c07c410853b1d0627
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
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