Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't this the one that was written based on an april fool's joke?

i am finding choosing a python framework to be stressful.



Yes.

It is stressful.

Look for libraries that make working with WSGI as painless as possible. Working with WSGI directly allows you to write modular code that works together gracefully with other WSGI code. Pylons is really just an amalgamation of WSGI modules. Smart people can amalgamate their own modules.

Django was written before WSGI was an established standard. It has the advantages of being established, a relatively large pool of developers, and the admin interface. It has the disadvantage of dictating your project layout, not integrating well with other WSGI modules, and having a large degree of lock-in.

The best options are Flask (for a simple start), Pylons (for more obvious out of the box functionality), WebOb (for a simple and slightly too magical WSGI library), and Werkzeug (for a well-written library that dictates nothing).


Um, what about Web2Py? I must say, so far I've been extremely impressed. It's polished, has batteries included, is very similar to Ruby on Rails in experience, and even has a built-in web-based IDE. (http://www.web2py.com/)


i've seen it before but every time i saw the word "enterprise" my helmet snapped shut in self-defense.


Why? Don't you like Star Trek?


I highly recommend going through the examples/ directory in the Werkzeug source. It might prompt you to take off your helmet and relax.


I think the reference was to web2py.


I think it was, too. I was suggesting that he might no longer need to wear a protective helmet upon experiencing Werkzeug.


My ill informed opinion: the WSGI specification (i.e., PEP 333) together with a decade or so of cross-pollination seems to have made most Python web frameworks more similar than different. You can opt for more out of the box functionality at the expense of less flexibility, but not much else. (The exceptions seem to be where the code is really old and/or asynchronous.) Django seems to be the BDFL blessed option.

Example: Everyone seems to think that Google copied "their" Python web framework in creating the "webapp" framework for App Engine. webpy, Django, ...


The April Fools python micro-framework was called 'Denied.' The Hacker News coverage is here, http://news.ycombinator.com/item?id=1237412 .




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: