Coverage for wasmtime/__init__.py: 100%

20 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-20 16:25 +0000

1""" 

2Python bindings for the [Wasmtime project] 

3 

4[Wasmtime project]: https://github.com/bytecodealliance/wasmtime 

5 

6This library binds the [Wasmtime project]'s C API to provide an implementation 

7of a WebAssembly JIT compiler to Python. You can validate, compile, instantiate, 

8and interact with WebAssembly modules via this library. 

9 

10The API of this library is intended to be very similar to the [`wasmtime` Rust 

11crate](https://docs.rs/wasmtime), so if you find the docs are lacking here feel 

12free to consult that documentation as well. While not exactly the same the two 

13libraries are intended to be quite similar. 

14""" 

15 

16from ._managed import Managed 

17from ._error import WasmtimeError, ExitTrap 

18from ._config import Config 

19from ._engine import Engine 

20from ._store import Store, Storelike 

21from ._types import FuncType, GlobalType, MemoryType, TableType 

22from ._types import ValType, Limits, ImportType, ExportType 

23from ._wat2wasm import wat2wasm 

24from ._module import Module 

25from ._value import Val 

26from ._trap import Trap, Frame, TrapCode 

27from ._func import Func, Caller 

28from ._globals import Global 

29from ._table import Table 

30from ._memory import Memory 

31from ._instance import Instance 

32from ._wasi import WasiConfig, FilePerms, DirPerms 

33from ._linker import Linker 

34from ._sharedmemory import SharedMemory 

35 

36__all__ = [ 

37 'wat2wasm', 

38 'Config', 

39 'Engine', 

40 'Store', 

41 'FuncType', 

42 'GlobalType', 

43 'MemoryType', 

44 'TableType', 

45 'ValType', 

46 'Limits', 

47 'ImportType', 

48 'ExportType', 

49 'Val', 

50 'Func', 

51 'Caller', 

52 'Table', 

53 'Memory', 

54 'SharedMemory', 

55 'Global', 

56 'Trap', 

57 'TrapCode', 

58 'ExitTrap', 

59 'Frame', 

60 'Module', 

61 'Instance', 

62 'WasiConfig', 

63 'FilePerms', 

64 'DirPerms', 

65 'Linker', 

66 'WasmtimeError', 

67]