Port Python Code to Android -


i having python code heavily relies on numpy/scipy , scikit-learn. best way running on android device? have read few ways python code running on android, pygame , kivy not sure how interact numpy , scikit-learn.

or better consider letting android application send data server python running?

from sound of i'd suggest making simple django server, free hosting available @ pythonanywhere.com

if don't know django go through basic tutorial. follow step step , you'll set within few hours. follow tutorial , implement example simultaneously using pythonanywhere.

once you're comfortable make url android app can send request , receive in either json or rest format information need.

https://docs.djangoproject.com/en/1.8/intro/tutorial01/

http://pythonanywhere.com/

running code numpy , scipy on phone won't fast either if there considerable amounts of computations behind it. far better run computations on server , retrieve on android app.

you can send parameters part of request. configure urls.py of django app receive parameters , pass views.py execute scripts work on them , send response.


Comments