bytecodealliance / bytecodealliance/componentize-py
Use `wasi-virt`-based VFS to store Python code
- Dominant language
- Rust
- Stars
- 277
- Forks
- 51
- Avg merge
- 12h 10m
- Merged PRs (30d)
- 10
Description
Currently, `componentize-py` "cheats" by assuming all required Python code will be loaded during the component pre-init step, and thus CPython won't need access to any of those files at runtime. This works surprisingly well, but will certainly break for more dynamic apps.
We should probably build a VFS by default, but also offer an option to use the "cheat" if desired.
Contributor guide
Research direction
Start by tracing how componentize-py currently loads Python code during component pre-init and review the proposed wasi-virt-based VFS approach. The work is done when a VFS is used by default for runtime file access while an option still enables the existing pre-init-only behavior, including support for more dynamic applications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust, wasm
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100