Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I write parts of the Google App Engine code in Java, other parts in Python?

Google App Engine supports both Python and Java application development.

Can I have both in the same application?

like image 908
Thilo Avatar asked Feb 26 '10 13:02

Thilo


3 Answers

Can I run Java and Python code in the same app?

Each version of the app must specify a runtime language and it is possible to have version x of your app running Java, while version y is running Python. It would also be possible to use Jython.

Source: Google App Engine for Java FAQ

like image 142
Daniel Vassallo Avatar answered Sep 17 '22 17:09

Daniel Vassallo


As far as I know, there are two ways:

  • Write another app in java, publish it as a web services and call it from python (but that's not what you are looking for)
  • Make a java application but write it in jython. Then your app will be written in python, it will run on JVM, and calls to java API are trivial.
like image 40
puzz Avatar answered Sep 19 '22 17:09

puzz


Just to have an updated answer for this question,

From this answer on GAE google groups, it looks like it is possible to have different modules in different languages.

like image 22
Devesh Avatar answered Sep 18 '22 17:09

Devesh