Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
from
wasmtime
import
Store
3
4
def
main():
5
store = Store()
6
component = Root(store)
7
print(
"1 + 2 ="
, component.add(store, 1, 2))
8
9
if
__name__ ==
'__main__'
:
10
main()
Callers
1
host.py
File · 0.70
Calls
1
add
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…