I create a pyd compiled python file of a function called sm that calculate the sum of two numbers (just to test the use of compiled python file). The compiled file name is somme.pyd
To test I create main.py :
import somme
somme.sm(400,1473)`
How can I use both somme.pyd and main.py using pyscript to run the code in browser ?
main.pypart is covered in this answer on SO. As for the other part, you could use the python code in the file that you used to produce the compiled dll. However, I doubt you can use the Windows binary file with WASM because of the architecture, see here: "WebAssembly is a different architecture from what those libraries were compiled for so, just as you can't run ARM binaries on an x86 machine without slow emulation, you can't run x86 binaries on wasm."