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_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-beta1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 6.0 MB
Release files / wasmer_compiler_singlepass-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp39-cp39-manylinux1_x86_64.whl |
|---|---|
| Size | 628.1 kB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ca15b3731975e447113506c3d46d7a49149950143cf40cdde3451e3bd85f60e
|
|
BLAKE2b-256 checksum How to use checksums |
993c773bafaf53e7a8b91eaa7a71c7c6a17fec04b7f30670ba62573967a3db9a
|
| 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_singlepass-1.0.0_beta1-cp39-cp39-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp39-cp39-macosx_10_7_x86_64.whl |
|---|---|
| Size | 563.3 kB |
| Tags | CPython 3.9 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
7518dce87450cfa56489d134fc0ab8dafdff013fe648c4537bebb3483ee2de14
|
|
BLAKE2b-256 checksum How to use checksums |
c0215573e61cb9e4f026221aa046e698bc0e2e919e34fe5c00526d4089e16613
|
| 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_singlepass-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 628.1 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
055edee5d88a0f085b6333d8666801d8185d7fd43bb77aabe45127decc2d2eb1
|
|
BLAKE2b-256 checksum How to use checksums |
5c392a52661113ab2044902791c1400464a0fe859a63998f511d2e2054cf86e5
|
| 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_singlepass-1.0.0_beta1-cp38-cp38-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp38-cp38-macosx_10_7_x86_64.whl |
|---|---|
| Size | 563.3 kB |
| Tags | CPython 3.8 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
9043903ffdd6291ad596c8d4fe3ac2770e4fcae5d21ab63770f28d7659da14ea
|
|
BLAKE2b-256 checksum How to use checksums |
9294d5e1aebdfc57d322fda652238fe585f0b2a4c93ccaf241463d67daee3060
|
| 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_singlepass-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 628.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f217cc4ae5a9e88c583ca6a0b346b58ddb73b359605ebd7efcc6f6011449efa0
|
|
BLAKE2b-256 checksum How to use checksums |
414c9f274bbd947459f1811669e51e8ddd2aec908aa951eb3dac467a1c080752
|
| 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_singlepass-1.0.0_beta1-cp37-cp37m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp37-cp37m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 563.3 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
1e097a2a7bb503291b81ee5ea90c18f0665c160ddfd940e544b7849ab747603b
|
|
BLAKE2b-256 checksum How to use checksums |
39d3df0269be51ff1eec71ef070caa2c6948a2d9a961bcce835e1030a2bdebab
|
| 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_singlepass-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 628.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
c83af732ee2a05479c9e9c9570da4cdb20baa87c8e602e1e4b28601ef64861f3
|
|
BLAKE2b-256 checksum How to use checksums |
dde6229b674a33cd6e8a5f053c0905c038471f9b26730e62a7c0334ace7c95d7
|
| 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_singlepass-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp36-cp36m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 563.6 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
6b82b96c328dd36b612637fb2c0e1edcf2dea75dc74192aa480b8282d974fc63
|
|
BLAKE2b-256 checksum How to use checksums |
37bfc1995e2f4627d7dafa10efb57186b8e439015731308142ba7c333e6ae584
|
| 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_singlepass-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 628.4 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
0c38849c9038568c204fef0453e5906bd7be9e78db1766fe855d89d32d78e450
|
|
BLAKE2b-256 checksum How to use checksums |
99ccf91c8d294cf9b7953fc0114a3949e59e4a3f6d1debad24ef1e7e8e7a969d
|
| 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_singlepass-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl
| Download URL | wasmer_compiler_singlepass-1.0.0_beta1-cp35-cp35m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 563.5 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
6451f4c236627406d89355ac15e3553d02e462a4d0f085c3cde751ccd026651e
|
|
BLAKE2b-256 checksum How to use checksums |
ac9abc80e725c34843b1ca276a2942872416095f3915b8ddaafa1ae2b008b44b
|
| 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
|