Jordi P.S.
Jordi P.S.

Reputation: 4018

Execute python on a java google app engine application

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?

Upvotes: 0

Views: 558

Answers (1)

Rachid
Rachid

Reputation: 2579

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

Upvotes: 2

Related Questions