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 LLVM compiler 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/wasmer_compiler_llvm/.

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-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-llvm 1.0.0-beta2
File
wasmer_compiler_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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_llvm-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: 96.3 MB

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

Download URL wasmer_compiler_llvm-1.0.0_beta2-cp39-cp39-manylinux2010_x86_64.whl
Size 13.4 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
d52e7c42d94010bdfe49bc883e60d6e1f8d0d479b6692144b0a11ffd6deeb8c1
BLAKE2b-256 checksum
How to use checksums
6c1569b912569f0c0034907b65a2d83679ece197b06aca5d1aa4fc7a1c0a2f06
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_llvm-1.0.0_beta2-cp39-cp39-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-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
e193d961bf6727623ec61e1b4d7e444778adcce992d9c3aaa5f119a212b93ffb
BLAKE2b-256 checksum
How to use checksums
b5b562d20c03eb642fa9a3809c188b5f70461f8676a76c8e3305f71c026237bb
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_llvm-1.0.0_beta2-cp38-cp38-manylinux2010_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-cp38-cp38-manylinux2010_x86_64.whl
Size 13.4 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
1c33f8c06fc13bedcc74477e16460ce45d56ffb93e59e8a6fc51205eba6321c6
BLAKE2b-256 checksum
How to use checksums
5d97b02deab07360bdc506e1128787fa9065b640b2778ceaf7756c496a75dba2
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_llvm-1.0.0_beta2-cp38-cp38-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-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
8d3b0ffed738e08b1b0a4675f190723c81fd2150ea256eebf5c1fac93646e1f5
BLAKE2b-256 checksum
How to use checksums
8e80bbbc1fc134c5d4d8b98711f1db261ad32076385bcebf90eaf5b61301835d
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_llvm-1.0.0_beta2-cp37-cp37m-manylinux2010_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-cp37-cp37m-manylinux2010_x86_64.whl
Size 13.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
6bccb1b47c328ee124214e2f869eaa44a7920211eadfdb4e7b631fa535129b6d
BLAKE2b-256 checksum
How to use checksums
7f63007f3d0c8b9fa2107fe139518c6259ab7f87ff4f697ee154dd0e88246ae6
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_llvm-1.0.0_beta2-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-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
f667b44888a8493e4ab743de855d79a6989c500c3e8784d4cbafad9317112336
BLAKE2b-256 checksum
How to use checksums
fe91002e850cb10ea5720a6fd3d53fb5032e4a1fe9e0f67e4aaeadb6f81df955
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_llvm-1.0.0_beta2-cp36-cp36m-manylinux2010_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-cp36-cp36m-manylinux2010_x86_64.whl
Size 13.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
82932c7878e13a39ed26373c9eeafd3d27252ad0b04ff9a1bfbfdf91181a24c6
BLAKE2b-256 checksum
How to use checksums
a02d22e3e6f65c4f832c1d23cecbb6a3ed1aa3fb59ad21374968912ad7aa3e7e
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_llvm-1.0.0_beta2-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_llvm-1.0.0_beta2-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
5fd8f52a594042f80fc45e38fe5f109c6533c304eb55ee61acd50a689cae722b
BLAKE2b-256 checksum
How to use checksums
7e32acc18538548c6749c1975920a21036384394b532f80b781c05a4d40c1500
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
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