Live data from Hacker News

Ask HN: Best Python Framework for Google App Engine?

news.ycombinator.com

21–30 of 48 posts

Re: Ask HN: Best Python Framework for Google App Engine?

#21
post #5

The most often mentioned is Django. We picked Tornado (tornadoweb.org) because it is lightweight and fast, especially on cold start, which is an app engine issue for low-traffic apps. It's even faster than webapp (!) because webapp loads the Django templating system. We've been happy with Tornado, although it doesn't have as much support for some stuff (e.g., web forms). It does have a templating language which is ju…

The real answer is "anything but Django." Django is a great framework, but not for GAE.

I've used tipfy.org

Re: Ask HN: Best Python Framework for Google App Engine?

#22
post #21
post #5

The most often mentioned is Django. We picked Tornado (tornadoweb.org) because it is lightweight and fast, especially on cold start, which is an app engine issue for low-traffic apps. It's even faster than webapp (!) because webapp loads the Django templating system. We've been happy with Tornado, although it doesn't have as much support for some stuff (e.g., web forms). It does have a templating language which is ju…

The real answer is "anything but Django." Django is a great framework, but not for GAE. I've used tipfy.org

Why is Django(-nonrel) a poor choice for GAE?

Re: Ask HN: Best Python Framework for Google App Engine?

#24

None. Just use webapp and you'll be happier, and faster.

At both http://albumpl.us and http://jaavuu.com we use webapp plus pytenjin: http://www.kuwata-lab.com/tenjin/pytenjin-users-guide.html

In addition, we have a small home-grown framework ("glue") that holds it together, but it's probably only about 100-200 lines of code. The advantage is that we know it and can maintain/add features easily.

But then again we don't really need a low end CMS, which is what many of these other frameworks try to provide.

Re: Ask HN: Best Python Framework for Google App Engine?

#26
I've used web2py on GAE and it's working nicely, with most of the GAE quirks taken into account out of the box. Everything has been taken care of as far as making your app work with GAE is concerned. The site I'm running with web2py + GAE is:

http://www.cvstash.com

The web2py author also admitted a few months back in the mailing list that google was paying him to test out the framework against GAE. So I think that means the GAE support would be production-ready at the very least.

Re: Ask HN: Best Python Framework for Google App Engine?

#29

A nice alternative to the built-in webapp framework is webapp2: http://code.google.com/p/webapp-improved/ It's basically a superset of webapp with some great additions and tweaks.

Thanks for the mention! (I'm the webapp2 author).

A big advantage of webapp2 is that you can use existing (and probably future) SDK libraries without adaptation. Many App Engine services (blobstore, mail handler, deferred etc) use handlers made for webapp. With webapp2 you get all those handlers working out of the box with extra benefits: webapp2 is a lot easier to extend and includes the most glaring webapp missing features.

Also, you can use all the examples from the App Engine documentation with it, since it is made to be compatible with webapp. And later you learn the new, extended features.

Re: Ask HN: Best Python Framework for Google App Engine?

#30

None. Just use webapp and you'll be happier, and faster.

Btw, we use webapp with some sugar on top to make it sweeter:

    import app

    class Index(app.request):
      def get(self):
        self.show('index')

    app.run('/',Index)
No framework in the whole world can make coding in AppEngine that easy.
Post reply on HN