Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT on Python App Engine

I have a python app engine code (matured backend) - and we are now planning to have a front end for that code.

I was wondering whether it is possible to implement GWT as the front end.

Even though Alex Martelli in this post [1] mentions it is not possible, a comment to that post suggests that it is indeed possible using rpc over json for GWT.

I was unable to understand how this is possible. In app.yaml file, we have to specify the language to be python, right? In that case, how can it compile GWT based on JAVA? Are there any examples on anyone doing that?

Can someone help me out? It would be extremely helpful.

[1]: Choosing Java vs Python on Google App Engine link

like image 723
Koran Avatar asked May 27 '10 08:05

Koran


People also ask

Does Google App Engine support Python 3?

The Python 3 runtime supports Python 3.7, Python 3.8, Python 3.9, and Python 3.10 and uses the latest stable release of the version that is specified in your app. yaml file. App Engine automatically updates to new patch release versions, but it will not automatically update the minor version.


Video Answer


1 Answers

I use GWT with Python quite a bit - the JSON interface works perfectly well. Your GWT front-end is still written in a java-like syntax, and you still need the Java toolchain to actually compile it down to HTML/Javascript, but it doesn't care what language the backend is written in.

As for how this is accomplished - the GWT toolchain is completely independent of GAE, there's no executable Java on the AppEngine side. You design and write your frontend in GWT on your own system, and then compile it to HTML/JS, which is what you upload to GAE.

like image 116
Nick Bastin Avatar answered Sep 28 '22 03:09

Nick Bastin