MCPcopy Create free account
hub / github.com/bytecodealliance/component-docs / main

Function main

component-model/examples/tutorial/python/host.py:4–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2from wasmtime import Store
3
4def main():
5 store = Store()
6 component = Root(store)
7 print("1 + 2 =", component.add(store, 1, 2))
8
9if __name__ == '__main__':
10 main()

Callers 1

host.pyFile · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…