wasmtime 43.0.0


pip install wasmtime

  Latest version

Released: Mar 31, 2026


Meta
Author: The Wasmtime Project Developers
Requires Python: >=3.9

Classifiers

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy
  • Rust

Topic
  • Software Development :: Compilers
  • Software Development :: Interpreters

wasmtime-py

Python embedding of Wasmtime

A Bytecode Alliance project

CI status Latest Version Latest Version Documentation Code Coverage

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.

43.0.0 Mar 31, 2026
42.0.0 Feb 24, 2026
41.0.0 Jan 20, 2026
40.0.0 Dec 22, 2025
39.0.0 Nov 20, 2025
38.0.0 Oct 20, 2025
37.0.0 Oct 08, 2025
36.0.0 Aug 20, 2025
35.0.0 Jul 22, 2025
34.0.0 Jun 20, 2025
33.0.0 May 20, 2025
32.0.0 Apr 21, 2025
31.0.0 Mar 21, 2025
30.0.0 Feb 20, 2025
29.0.0 Jan 22, 2025
28.0.0 Dec 20, 2024
27.0.2 Nov 25, 2024
27.0.1 Nov 21, 2024
27.0.0 Nov 20, 2024
25.0.0 Sep 20, 2024
24.0.0 Aug 20, 2024
23.0.0 Jul 22, 2024
22.0.0 Jun 20, 2024
21.0.0 May 20, 2024
20.0.0 Apr 23, 2024
19.0.0 Mar 20, 2024
18.0.2 Mar 02, 2024
18.0.0 Feb 21, 2024
17.0.1 Feb 08, 2024
17.0.0 Jan 25, 2024
16.0.0 Jan 22, 2024
15.0.0 Nov 20, 2023
14.0.0 Oct 22, 2023
13.0.2 Sep 25, 2023
13.0.1 Sep 21, 2023
13.0.0 Sep 20, 2023
12.0.0 Aug 21, 2023
11.0.0 Jul 20, 2023
10.0.1 Jul 18, 2023
10.0.0 Jul 03, 2023
9.0.0 May 22, 2023
8.0.1 Apr 24, 2023
8.0.0 Apr 20, 2023
7.0.0 Mar 20, 2023
6.0.0 Feb 20, 2023
5.0.0 Jan 20, 2023
4.0.0 Jan 07, 2023
3.0.0 Nov 22, 2022
2.0.0 Oct 24, 2022
1.0.1 Sep 27, 2022
1.0.0 Sep 21, 2022
0.40.0 Aug 30, 2022
0.39.1 Jul 21, 2022
0.38.0 Jun 21, 2022
0.37.0 Jun 15, 2022
0.36.0 Apr 26, 2022
0.35.0 Mar 08, 2022
0.34.0 Feb 10, 2022
0.33.0 Jan 07, 2022
0.32.0 Dec 13, 2021
0.31.0 Oct 29, 2021
0.30.0 Sep 17, 2021
0.29.0 Aug 03, 2021
0.28.1 Jul 26, 2021
0.28.0 Jun 09, 2021
0.27.0 May 22, 2021
0.26.0 Apr 05, 2021
0.25.0 Mar 16, 2021
0.24.0 Mar 05, 2021
0.23.0 Feb 18, 2021
0.22.0 Jan 14, 2021
0.21.0 Nov 05, 2020
0.20.0 Sep 29, 2020
0.19.0 Jul 17, 2020
0.18.2 Jul 08, 2020
0.18.1 Jun 24, 2020
0.18.0 Jun 17, 2020
0.17.0 Jun 03, 2020
0.16.1 May 22, 2020
0.16.0 Apr 30, 2020
0.15.1 Apr 01, 2020
0.15.0 Mar 31, 2020
0.12.0 Feb 26, 2020
0.11.0 Feb 09, 2020
0.9.0 Jan 10, 2020
0.0.2 Aug 18, 2019
0.0.1 Aug 15, 2019
Extras:
Dependencies: