Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python REST frameworks for App Engine?

Any pointers, advice on implementing a REST API on App Engine with Python? Using webapp for the application itself.

What I currently know is that I can:

  • hack up my own webapp handlers for handling REST-like URIs, but this seems to lose its elegance for larger amounts of resources. I mean, it's simple when it comes to temperature/atlanta, but not so much* for even a rather simple /users/alice/address/work (though do keep in mind that I'm not saying this after having implemented that, just after spending some time trying to design an appropriate handler, so my perception may be off).

  • use the REST functionality provided by one of the bigger Python web frameworks out there. I have some unexplainable sympathy towards web2py, but, since it's not used for the project, bundling it with the application just to provide some REST functionality seems.. overkill?

(Huh, looks like I don't like any of these approaches. Tough.)

So here's me asking: what advice, preferably based on experience, would you have for me here? What are my options, is my view of them correct, did I miss something?

Thanks in advance.

like image 544
maligree Avatar asked Aug 05 '11 09:08

maligree


People also ask

Is heroku an App Engine?

Heroku and AppEngine are philosophically similar in that they are both PaaS solutions. They both provide you with a ready-made environment in which you can deploy your code and apps, though that environment only hosts a limited range of OS, languages, databases and other base platforms on available.

What two programming languages do App Engine's tools use?

Google App Engine primarily supports Go, PHP, Java, Python, Node. js, . NET, and Ruby applications, although it can also support other languages via "custom runtimes". The service is free up to a certain level of consumed resources and only in standard environment but not in flexible environment.


1 Answers

I had a similar issue. Wanting to quickly get my DataStore exposed via REST to WebApps.

Found: AppEngine REST Server.

I have only used it lightly so far, but it certainly appears to be very useful with a small amount of work. And it does use webapp as you suggested.

like image 141
CyberFonic Avatar answered Oct 03 '22 22:10

CyberFonic