Live data from Hacker News

Ask HN: What Web frameworks exist around Python?

news.ycombinator.com

21–30 of 32 posts

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

#21

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()

It's great for writing small one-offs (the sort of thing you might use PHP for) and web interfaces for non-web applications. But for large projects it's really not suitable.

I don't know about that. I've written some fairly large programs in webpy lately.

Our latest site, http://sitecanary.com/ has the UI completely written in webpy.

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

#22
post #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 foundat…

I'm a big fan of Turbogears. It's big enough to do a lot of work for you but not big enough that it forces your hand.

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

#23
Straight up WSGI: http://www.xml.com/pub/a/2006/09/27/introducing-wsgi-pythons...

Django, Pylons, Cherry.py, Turbogears, web.py, Zope, Plone (more of a CMS than a framework, though), Juno, itty, djng, mnml, itty, newf...

I'm sure there's others that I forgot.

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

#26

Web.py is great for small projects. web2py is the new up-and-comer. zope is the grey-bearded veteran that nobody uses anymore. twisted is more of a networking framework but people sometimes use it for web apps.

By zope, i assume you mean Zope2.

Nobody uses zope? really? Plone, arguably the best Open Source CMS out there is built on Zope2 and continues to be used in ever increasing numbers..

Zope3 is not just a "framework". Its a mindset that allows people to think about solving problems in a robust way, which will remain useful for software's lifecycle.

Zope people realized the danger in building monolithic frameworks after the experiences of Zope2. When they started zope3, they kept the goal of reusability the number one design goal, even at the risk of appearing over-engineered at times. Today, there is no Zope3 and Zope3 is everywhere. Zope lives in Plone, Repoze, Grok and myriad of python libraries.

Lot of good ideas from zope like Zope.Interfaces and Zope component architecture are being outside the zope community.

Django is the Zope2 of 2009.

How many software stacks are still being supported and catered for after 10 years? Zope is a greybeard but saying that nobody uses it implies lack of actual knowledge of python frameworks and how they play together.

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

#27
Python developers have tried to move away from the framework thinking for some time.

The emergence of make-your-frameworks (Pylons), lightweight(juno, web.py) frameworks, and pay-for-what-you-eat frameworks (repoze)

Choose libraries based on what serves you best, combine them together using WSGI.

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

#30

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.

The only trouble I've run into with web.py is its extremely poor documentation.
Post reply on HN