Skip to content

Application example for running PyScript with java on Android

License

Notifications You must be signed in to change notification settings

LoreBadTime/PyScript-On-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template of Android application (Java) running along a PyScript core

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

FAQ

How to run PyScript library offline?

  1. Download the entire file from pyscript website https://pyscript.net/unstable/pyscript.js
  2. Place it in src\main\assets
  3. 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

About

Application example for running PyScript with java on Android

Topics

Resources

License

Stars

Watchers

Forks