.. | ||
src | ||
wit | ||
.gitignore | ||
python_decoder.wasm | ||
README.md |
How to create and build the Python component:
pip install componentize-py
- Create the
python_decoder
folder cd python_decoder
- Create
.gitignore
with content__pycache__
- Create the
src
folder with the fileapp.py
- Create the
wit
folder with the fileworld.wit
- Update code as needed
rm -rf src/bindings && componentize-py --wit-path wit/world.wit bindings src/bindings && componentize-py --wit-path wit/world.wit componentize src.app --output python_decoder.wasm