I want to execute python from a java google app engine application. I can use some libs as jython but it would be better to use native python and access the real python api.
Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot deploy python and java code inside the same app version. But you can have running different version of the appspot application in java and python.
So you can simply deploy them to different versions. Note versions don’t have to be numeric. You can deploy your java code to version “java” and the corresponding url will be http://java.YourApp.appspot.com ; and deploy your python to http://py.YourApp.appspot.com by using version “py”
You can let java and python versions communicate between each other by using JSON (more precisely JSONP [for cross site requests]) http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html or Taskqueue