Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@

This is an experiment to build a Spin Python SDK using CPython, Wizer, and PyO3.

## Installing the Plugin and Running Examples
## Installing the Plugin

Use the following command to install the `py2wasm` plugin and then build the example Spin app:

```
```bash
spin plugins update
spin plugins install py2wasm
```

If you'd like to try out the latest features, you can use the following command to install the *unstable* canary version of the plugin:

```bash
spin plugins install --url https://github.com/fermyon/spin-python-sdk/releases/download/canary/py2wasm.json
```

## Running Examples

After installing the plugin, you can run the examples found in this repo:

```bash
cd examples/hello world
spin build
spin up
Expand All @@ -34,13 +47,13 @@ First, build CPython for wasm32-wasi.

Then, build the `spin-python-cli`:

```
```bash
make
```

Finally, build and run the example app:

```
```bash
cd examples/hello_world
$CARGO_TARGET_DIR/release/spin-python app -o app.wasm
spin up
Expand Down