I have a fully functional Python project which have been tested directly through the terminal.
But when I searched on how to integrate Python code with a JavaScript wrapper, I found few of the open-source API's
http://www.brython.info/
http://www.skulpt.org/
http://pypyjs.org/
http://transcrypt.org/
http://stromberg.dnsalias.org/~strombrg/pybrowser/python-browser.html
I have used brython & was able to run few basic python codes
But my python project contain some import statements of libraries which I have installed directly into the OS using
apt-get install python-opencv
apt-get install python-numpy
apt-get install python-skimage
apt-get install cython
pip install --user imutils
pip install --user scikit-image
And project contains import statements as
import imutils
from skimage.filter import threshold_adaptive
import numpy as np
import argparse
import cv2
My Aim is to be able to run my python code using the JavaScript wrapper on a Cordova project, but since these libraries will not be available by default, I tried downloading them & importing through local paths, but then I started facing many import errors & console errors thrown by brython is not understandable. I'm trying to build image processing software build using Python running on Cordova Android&iOS.
Any help would be appreciated. Thanks in Advance