pmp-p / python-wasm-plus

~~sandbox for making Pygame CPython apps on WebAssembly, and also run CPython testsuite in browser~~ use Pygbag instead on https://github.com/pygame-web
https://pmp-p.github.io/python-wasm-plus/python311.html?org.python3.11.0&all
MIT License
14 stars 3 forks source link

need a platform module #2

Open pmp-p opened 2 years ago

pmp-p commented 2 years ago

to report what's available on wasm engine.

https://github.com/GoogleChromeLabs/wasm-feature-detect

maybe __WASM__(.py) for low level info.

and __EMSCRIPTEN__(.py) for the browser/node stuff while waiting for wasi.py to fully mature

the native part of the module could be called "embed" since it would be part of libpython embedding in the main.