4 ms·
Flask 0.5 Released - Python WSGI microframework
- enduser 16y agoMajor points of interest: Flask has been split into multiple files in a package, added support for per-module templates and static files.
- cageface 16y agoOf the python microframeworks I've seen this one looks the most appealing and polished.
- enduser 16y agoIt is also an interesting springboard to working directly with Werkzeug, around which Flask is a relatively thin wrapper. Werkzeug is a very featureful library with which one can rapidly create exactly the framework one needs for a given project. No magic, no ponies ;-)
- cageface 16y agoI looked briefly at Werkzeug and I've heard good things about it. I have to confess I was deterred for no better reasons than the name and finding too much resemblance between the start page and the classic "under construction" web page circa 1998.
- jokull 16y agoI'm sensing that Roman's Flask project was born out of frustration with people not getting his Werkzeug and Jinja2 projects - probably because of bad marketing. On 1 April he created a silly little microframework and did all the right marketing tricks (flashy website, code on github, references to "ninja coders" etc.). It was supposed to be a joke, but upon seeing how much interest the project got he went ahead and started glueing these components together properly (that's Flask). Werkzeug was a marketing failure but Flask builds upon these mistakes. The documentation is good, the name is excellent and he's attracted attention through GitHub. I'm waiting for an excuse to try this project out :)
- cageface 16y agoWe've arrived at a very interesting point in the evolution of programming languages. For a lot of tasks there are several functionally interchangeable languages to choose from, so increasingly language choice is a matter of taste and style. Languages are developing the same kinds of brand identity that used to be the domain of cars and clothes. In this context marking is everything.
- jokull 16y agoEDIT: His name is not Roman! Sorry Armin.
- uggedal 16y agoWerkzeug is great if you need more flexibility than Django. http://wasitup.com http://wasitup.com uses Werkzeug and I've been very impressed with it. My wasitup.web module is a Werkzug application alongside wasitup.http, wasitup.monitor, wasitup.persistence, and wasitup.mail.
- cgbystrom 16y agoList of changes (from the mailing list) What's new: * fixed a bug with subdomains that was caused by the inability to specify the server name. The server name can now be set with the SERVER_NAME config key. This key is now also used to set the session cookie cross-subdomain wide. * autoescaping is no longer active for all templates. Instead it is only active for .html, .htm, .xml and .xhtml. Inside templates this behaviour can be changed with the autoescape tag. * refactored Flask internally. It now consists of more than a single file. * flask.send_file() now emits etags and has the ability to do conditional responses builtin. * (temporarily) dropped support for zipped applications. This was a rarely used feature and led to some confusing behaviour. * added support for per-package template and static-file directories. * removed support for create_jinja_loader which is no longer used in 0.5 due to the improved module support. * added a helper function to expose files from any directory. Links: Online Documentation: http://flask.pocoo.org/docs/ Downloadable PDF: http://flask.pocoo.org/docs/flask-docs.pdf Website: http://flask.pocoo.org/ On Github: http://github.com/mitsuhiko/flask PyPI Record: http://pypi.python.org/pypi/Flask http://flask.pocoo.org/mailinglist/archive/2010/7/6/ann-flask-0-5-calvados-released/ http://flask.pocoo.org/mailinglist/archive/2010/7/6/ann-flas...
- mhd 16y agoHow does it compare to Bottle? (http://bottle.paws.de/ http://bottle.paws.de/)
- enduser 16y agoBottle uses one process-wide application object. Flask supports initializing multiple application objects (such as for testing the app with different configurations). Flask is built on top of the feature-rich Werkzeug library, which can significantly reduce the amount of code you must write for more complex applications. It is straightforward to refactor Flask out of your code and use Werkzeug directly. Flask has a growing community of contributors. See the extensions library: http://flask.pocoo.org/extensions/ http://flask.pocoo.org/extensions/ In a nutshell, Bottle is suitable for very simple websites. Flask has what it takes to grow into a large site.
- defnull 16y ago> Bottle uses one process-wide application object. Flask supports initializing multiple application objects. The process-wide application object is a sane default for small applications, but not the only option. You can instantiate bottle.Bottle() and work with that, if you need multiple encapsulated application objects. This is fully supported.
- enduser 16y agoFlask 0.5.1 released (bugfix): http://news.ycombinator.com/item?id=1491638 http://news.ycombinator.com/item?id=1491638 http://pypi.python.org/pypi/Flask/0.5.1 http://pypi.python.org/pypi/Flask/0.5.1
- the_mitsuhiko 16y agoI'm embarrassed it had to come to that, but the testsuite was lacking tests for templates in folders and a bug sneaked in.
- adamilardi 16y agoWhat is a good use case for a microframework?
- enduser 16y agoBeing able to get off the ground quickly while still determining the structure of your project. Thinking like a system programmer rather than a plugin programmer / integrator. Using the libraries of your choice to implement your site in the best way for your requirements.
- didtrade 16y ago<a href="http://www.didtrade.com/><strong>www.didtrade.com http://www.didtrade.com/><strong>www.didtrade.co... Online sell fashion goods,Accept PayPal.cheap replica fashion goods for sale from china free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Children-suit free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica t-shirts free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Children-coat free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Children-pants free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Children-tops free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Children shoes free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica children-boot free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica UGG boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Edhardy boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica LV boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica DG boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Gucci boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica chanel boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica fendi boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Tou`s boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Versace boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica coach boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica juicy boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Burberry boots</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Justin boots</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Dior boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Puma boots free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica DB bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Burberry bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Suitcase free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica gucci bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Fendi bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Versace bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Prada bag free shipping</strong></a><br /> <a href="http://www.didtrade.com/><strong>Replica http://www.didtrade.com/><strong>Replica Hermes_7*star free shipping</strong></a><br />
- joshu 16y agoIsn't this the one that was written based on an april fool's joke? i am finding choosing a python framework to be stressful.
- enduser 16y agoYes. 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).
- lowkey 16y agoUm, 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/ http://www.web2py.com/)
- jamongkad 16y agoHow does Flask compare with web.py?