Tiny library/example of how to make pyscript work with native java apps
For those wandering this implementation is completely hard coded, expect things to break, and for expert code readers expect to read crappy code :D
Im not affiliated with the PyScript project
PyScript repository here : https://github.com/pyscript/pyscript
on relase page there is the working test
How to run PyScript library offline?
- Download the entire file from pyscript website https://pyscript.net/unstable/pyscript.js
- Place it in src\main\assets
modify the src\main\assets\pyscript.html to use the new import
from "<script defer src="https://pyscript.net/unstable/pyscript.js"></script>"
to <script defer src="./pyscript.js"></script>
I might continue to develop (rewrite better everything to have something really usable,since i done things really rapidly and for fun) if enough people can find this useful