Skip to content

Commit c6cefb6

Browse files
fix(lang/py): remove no resource support note (#322)
1 parent a3ac832 commit c6cefb6

File tree

1 file changed

+2
-8
lines changed
  • component-model/src/language-support

1 file changed

+2
-8
lines changed

component-model/src/language-support/python.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,6 @@ to try out building HTTP, CLI, and TCP components from Python applications.
9494
WebAssembly components can also be invoked from Python applications.
9595
This section walks through using python native tooling to call the [pre-built `add.wasm` component][add-wasm] in the examples.
9696

97-
> To use `wasmtime-py` to run a component built with `componentize-py`,
98-
> the `--stub-wasi` option must have been passed to `componentize-py`
99-
> when the component was built.
100-
> This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources),
101-
> and `componentize-py` by default generates components which use resources from the `wasi:cli` world.
102-
> See [this example](https://github.com/bytecodealliance/componentize-py/tree/main/examples/sandbox)
103-
> of using the `--stub-wasi` option to generate a `wasmtime-py`-compatible component.
104-
10597
First, install [Python 3.11 or later](https://www.python.org/) and [pip](https://pypi.org/project/pip/) if you don't already have them.
10698
Then, install [`wasmtime-py`](https://github.com/bytecodealliance/wasmtime-py):
10799

@@ -136,6 +128,8 @@ $ python3 host.py
136128
1 + 2 = 3
137129
```
138130

131+
You can find another example of a Python host usage via `wasmtime-py` in the [componentize-py repository](https://github.com/bytecodealliance/componentize-py/tree/main/examples/sandbox).
132+
139133
[add-wasm]: https://github.com/bytecodealliance/component-docs/blob/main/component-model/examples/example-host/add.wasm
140134

141135
[adder-wit]: https://github.com/bytecodealliance/component-docs/tree/main/component-model/examples/tutorial/wit/adder/world.wit

0 commit comments

Comments
 (0)