Live data from Hacker News

Ask HN: What Web frameworks exist around Python?

news.ycombinator.com

1–10 of 32 posts

Re: Ask HN: What Web frameworks exist around Python?

#6

http://webpy.org/ import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name = 'world' return 'Hello, ' + name + '!' if __name__ == "__main__": app.run()

Yep, it's pretty cool. But I would say it's more like a library and less like a framework.

Re: Ask HN: What Web frameworks exist around Python?

#8
So here (http://fewagainstmany.com/blog/python-micro-frameworks-are-a...) is a post that lists some micro-frameworks for Python, such as web.py. Many of them are similar to Sinatra for Ruby (if you are familiar with that framework) and basically allow you to create very simple web applications in a single file if that is what you desire. While these are not inherently MVC, they can be used as the underlying foundation for your very own MVC framework.

As for MVC, the other big ones for Python (other than Django) are Pylons and TurboGears. Of course there are some other very heavy weight ones as well, such as Zope and Plone, but my knowledge of these is very limited, so I'll leave them for someone else to comment on.

Finally, you can could always use the WSGI spec directly and just slap together all the other "best of bread" pieces to make your own simple framework. It's actually pretty easy to do so, and the best tutorial I've found on doing just that is on Joe Gregorio's website (http://bitworking.org/news/Why_so_many_Python_web_frameworks). Check it out, it's definitely worth running through once to at least get an idea of what other frameworks are doing under the hood.

Re: Ask HN: What Web frameworks exist around Python?

#10

don't forget the grandaddy of python frameworks: http://www.zope.org/

zope is no longer a monolithic framework, but a large collection of libraries, most of which can used outside the main zope framework or even create your own framework. You can use what you want -- the `pay for what you eat` principle.

Repoze - http://repoze.org and Grok - http://grok.zope.org are some of the derivative frameworks that use best of zope libraries without going the whole hog.

Today, zope (specifically zope3) is arguably ahead of other popular frameworks in terms of its reusability, deployment stories, extensive testing.

Combine WSGI + Paste + Zope Component architecture + SQLAlchemy and a choice of other libraries to create a robust framework of your own.

Post reply on HN