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

Other compilers exist:

  • wasmer_compiler_cranelift,
  • wasmer_compiler_llvm.

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_singlepass

Usage

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

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

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

Metadata

Release files for wasmer-compiler-singlepass 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)

Table of built distributions (wheels) for wasmer-compiler-singlepass 1.0.0-alpha3
File
wasmer_compiler_singlepass-1.0.0_alpha3-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp35-none-win_amd64.whl CPython 3.5 none Windows x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
wasmer_compiler_singlepass-1.0.0_alpha3-cp35-cp35m-macosx_10_7_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64 Details

Total release size: 6.5 MB

Release files / wasmer_compiler_singlepass-1.0.0_alpha3-cp38-none-win_amd64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp38-none-win_amd64.whl
Size 530.3 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
f18ee330ae3a0e1a86381ad545b8efcb6b8c1c9a42ba6e1a4929d36227534f53
BLAKE2b-256 checksum
How to use checksums
80f04dbe5c0f83b9961287d003f8a10219f9a0dbe6c69fb097f06d2a6515af1d
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_singlepass-1.0.0_alpha3-cp38-cp38-manylinux1_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp38-cp38-manylinux1_x86_64.whl
Size 588.4 kB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
fc305eabf0204acd3c76518b272cabbdd3b756e98cd38794773455977fd3cae1
BLAKE2b-256 checksum
How to use checksums
60735196f652937df940a0cfc4ef29c22ed645a195ce94464d292672bd4192e1
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_singlepass-1.0.0_alpha3-cp38-cp38-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp38-cp38-macosx_10_7_x86_64.whl
Size 516.6 kB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
6d50906e58cbeb6c1d0e16a85e577ac0f7d95943c3b5f22a350f6bd65e3d21da
BLAKE2b-256 checksum
How to use checksums
d6c507b2d0bcec6e0b36751f8100370f8b4d3b32643ca2e945bc6f1682891115
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_singlepass-1.0.0_alpha3-cp37-none-win_amd64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp37-none-win_amd64.whl
Size 530.3 kB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
6497e14321d29fcccce65e69c09deb6ada4032070b04047515e81b9213effd71
BLAKE2b-256 checksum
How to use checksums
de9a4412eae5973124564a8206110c2a7294e08deef85433c27b4eb9fd78b8ed
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_singlepass-1.0.0_alpha3-cp37-cp37m-manylinux1_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp37-cp37m-manylinux1_x86_64.whl
Size 588.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2d28b287846a345a37f188ef6a665ccaaf22a20bef4ea9754aa063690163b993
BLAKE2b-256 checksum
How to use checksums
5971f6c98b14175cb83103c8a4380a0b032adb9ed4e01fb22e42d99c81c7e7e0
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_singlepass-1.0.0_alpha3-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp37-cp37m-macosx_10_7_x86_64.whl
Size 516.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
8d34f7c6d34209cf1aea28b0ed020d1ec63b244c11ab9cc9669a0e36b76a849a
BLAKE2b-256 checksum
How to use checksums
f9d0b88a9c16595f29bda2323d8f47b8d25622bc8b58664e7609c1dbabd33065
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_singlepass-1.0.0_alpha3-cp36-none-win_amd64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp36-none-win_amd64.whl
Size 530.5 kB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
fdc40baff9bc5bbc354a1457fd25e8bd810cfae09d39701e373852e002087d26
BLAKE2b-256 checksum
How to use checksums
a4d82fef2d7dfda44827dc2a7c0c93d9b270719902bdbe3005d4bd78bf896892
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_singlepass-1.0.0_alpha3-cp36-cp36m-manylinux1_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp36-cp36m-manylinux1_x86_64.whl
Size 588.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c0ef06f39a0fb66fedfa13aa7a94d88aacf5d553d6c56ab000b32d422102d7c8
BLAKE2b-256 checksum
How to use checksums
9aede6d7e6370b30839e20a76f37740e3bb6df6a48d9e6bc3baaa63bc1abd1d8
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_singlepass-1.0.0_alpha3-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp36-cp36m-macosx_10_7_x86_64.whl
Size 516.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
54b28251b5d5ba71d9124c1ccf990c1f64f30cc07bf24c6e3280c61ce8b66809
BLAKE2b-256 checksum
How to use checksums
ac813ce0df38454c2340a5807a2f16395c347c236ee315bef2e195337c3f605b
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_singlepass-1.0.0_alpha3-cp35-none-win_amd64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp35-none-win_amd64.whl
Size 530.1 kB
Tags CPython 3.5 Windows x86-64
SHA-256 checksum
How to use checksums
9eb0b27ef314eb2db99f665806484db74b27a5b82db6bc9b0d650831c8ee85c0
BLAKE2b-256 checksum
How to use checksums
51f0a842f9057d7e429a156dd15a7fdd01b463a8a061d3609c46f771e0edfd2c
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_singlepass-1.0.0_alpha3-cp35-cp35m-manylinux1_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp35-cp35m-manylinux1_x86_64.whl
Size 588.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
b39583731ceac22def2a6d8bfdd1851a62f0f166bb9aada2a70ed76a19ea9e71
BLAKE2b-256 checksum
How to use checksums
796ffde06a8c365b4716224c47994e27cbd66a9cffab7fcd7d1a541660a4c5d4
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_singlepass-1.0.0_alpha3-cp35-cp35m-macosx_10_7_x86_64.whl

Download URL wasmer_compiler_singlepass-1.0.0_alpha3-cp35-cp35m-macosx_10_7_x86_64.whl
Size 516.3 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
c152eacf995d72f1d857db53c7475f202af1c0f391faa94e623b0e1ea8139389
BLAKE2b-256 checksum
How to use checksums
37c274140fa6c0a7b5fd97dbbc0a484ed1a0a708e8e0ec2ab14871a1ff1692c6
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
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