Installation
To install wasmtime-py, run this command in your terminal:
$ pip install wasmtime
The package currently supports 64-bit builds of Python 3.9+ on Windows, macOS, and Linux, for x86_64 and arm64 architectures.
Versioning
wasmtime-py follows the Wasmtime versioning scheme, with a new major version being
released every month. As with Wasmtime itself, new major versions of wasmtime-py
can contain changes that break code written against the previous major version.
Since every installed Python package needs to agree on a single version of
wasmtime-py, to use the upper bound on the major version in the dependency
requirement should be bumped reguarly, ideally as soon as a new wasmtime-py
version is released. To automate this process it is possible to use
the whitequark/track-pypi-dependency-version script. YoWASP/runtime is
an example of a project that automatically publishes releases on PyPI once a new
version of wasmtime-py is released if it passes the testsuite.
Usage
In this example, we compile and instantiate a WebAssembly module and use it from Python:
from wasmtime import Store, Module, Instance, Func, FuncType
store = Store()
module = Module(store.engine, """
(module
(func $hello (import "" "hello"))
(func (export "run") (call $hello))
)
""")
def say_hello():
print("Hello from Python!")
hello = Func(store, FuncType([], []), say_hello)
instance = Instance(store, module, [hello])
run = instance.exports(store)["run"]
run(store)
Be sure to check out the examples directory, which has other usage patterns
as well as the full API documentation of the wasmtime-py package.
Components
Components are also supported in wasmtime-py. For more information see the
documentation of
wasmtime.component.
Using a component is similar to using core wasm modules, and for examples see
the tests/component/ directory.
Contributing
See CONTRIBUTING.md.
Metadata
Release files for wasmtime 50.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wasmtime-50.0.1.tar.gz | 132.4 kB | Without provenance | Details |
Built distributions (wheels)
Total release size: 94.6 MB
Release files / wasmtime-50.0.1.tar.gz
| Download URL | wasmtime-50.0.1.tar.gz |
|---|---|
| Size | 132.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9a1eb530e5c4a55853784ae6bff0053db3cad89299097ad00e352e3d48c3cc1
|
|
BLAKE2b-256 checksum How to use checksums |
dfb43f5b09b3298a9038136a6731a25d8346312db0b18bee334512da7ec5edc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-win_arm64.whl
| Download URL | wasmtime-50.0.1-py3-none-win_arm64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
83ddab2358ebde392a065581f2c66995a711ccc25ad0aee7b1d20f8c688075d2
|
|
BLAKE2b-256 checksum How to use checksums |
469ec5d0f1f1d4b9d0f6f975de8017ba296e8a36e856d5efbcc76854c667e2fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-win_amd64.whl
| Download URL | wasmtime-50.0.1-py3-none-win_amd64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a8999581230471f4ff62073b1111eff3a01d45ccec0a908da3f2ae3a499d459c
|
|
BLAKE2b-256 checksum How to use checksums |
df3ae14287689ed571c9a001201a0349299d50bf6251ee09f4f6e467b4b1212b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-musllinux_1_2_x86_64.whl
| Download URL | wasmtime-50.0.1-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 9.6 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
e3e2051b02b8a47e2418f569e380843e87c1d74c40cd843bfa14c223245d420b
|
|
BLAKE2b-256 checksum How to use checksums |
0bb818851a2017a3199cb2edccc24404b50e01a47ab02b675f26b440a4c84ece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-musllinux_1_2_aarch64.whl
| Download URL | wasmtime-50.0.1-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
f9c6973ae735946b3387b7a8e812ecd350eac3152c4b73998a57899dd9c4345c
|
|
BLAKE2b-256 checksum How to use checksums |
32a229c2e104df33311e70ff44137ba1a345eb3eda16ceb0dc800a457bfecad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-manylinux2014_aarch64.whl
| Download URL | wasmtime-50.0.1-py3-none-manylinux2014_aarch64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
675484e525c028dc02762b777f1db4477ea70caa3fec6775426daff4d64edfb1
|
|
BLAKE2b-256 checksum How to use checksums |
8ec458709b73e613e5366e4783537e2a861272d95f500c43fddf9b378d98415a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-manylinux1_x86_64.whl
| Download URL | wasmtime-50.0.1-py3-none-manylinux1_x86_64.whl |
|---|---|
| Size | 9.6 MB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
cc14c3a17654e0394e0225b11813532ef0cd7bd1e222a0c5494cdedaabeddac4
|
|
BLAKE2b-256 checksum How to use checksums |
d59d97c109d4a25c716c4045644398d7e684e1d4fa5ec6c99412b5cba35a9a98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-macosx_11_0_arm64.whl
| Download URL | wasmtime-50.0.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ff4fc58ed3cbdb919d056accd4d280be13962a542754aaefd8a9b4654efa9bd9
|
|
BLAKE2b-256 checksum How to use checksums |
5dc1e8782c8c8756235bea9dcc7cef2a35d3691c0f573eed415ccbf871cd6b3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-macosx_10_13_x86_64.whl
| Download URL | wasmtime-50.0.1-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
13fe813b922712a9e10fe0f48b2c56da06432eea4b24269bb7cd3a6b2720560b
|
|
BLAKE2b-256 checksum How to use checksums |
891c91bbf9d9a3846a174cdf6597b02d27d9f335c15a2d34d16fb8f46c81cb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-any.whl
| Download URL | wasmtime-50.0.1-py3-none-any.whl |
|---|---|
| Size | 8.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d174cad86f66dd819b0c3a77f27e375ca1f106d3858be221ce924d57d3856050
|
|
BLAKE2b-256 checksum How to use checksums |
b127728ee5fb19c5f0b09598d96953e21099e4ab7b81979fa53684036c87c199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-android_26_x86_64.whl
| Download URL | wasmtime-50.0.1-py3-none-android_26_x86_64.whl |
|---|---|
| Size | 9.5 MB |
| Tags | Android API level 26+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
612ebd1874eeab5f3eb3f18e529ab8af4bff885b7450c58593e3c3889868406b
|
|
BLAKE2b-256 checksum How to use checksums |
58112a70ef13312f5fa0321737a48841480883578579826e7e103e770e31ab81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / wasmtime-50.0.1-py3-none-android_26_arm64_v8a.whl
| Download URL | wasmtime-50.0.1-py3-none-android_26_arm64_v8a.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Android API level 26+ ARM64 v8a Python 3 |
|
SHA-256 checksum How to use checksums |
62e4d9b9371b4766a3deb044618c17adad3983ab3333d1598df0e981ec88206f
|
|
BLAKE2b-256 checksum How to use checksums |
429fa854f2cb5ea4e654248fb2f25c0343153cad04d00108251a8f1f0121d749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for wasmtime 50.0.1
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.