Python微型web开发框架Flask v0.5.1
Flask:http://flask.pocoo.org
Flask是一款Python微型web开发框架,它基于Werkzeug、Jinja 2 及良好的扩展。
对作者来说,微型框架中的“微型”指的不仅是简洁与小型,而且通常是指有限的复杂性和用该框架编写的应用程序的大小。为了便于上手及简洁,微型框架牺牲了在大型复杂应用中所必须的一些特性。
For example, Flask uses thread-local objects internally so that you don’t have to pass
objects around from function to function within a request in order to stay threadsafe.
While this is a really easy approach and saves you a lot of time, it also does not scale
well to large applications. It’s especially painful for more complex unittests, and when
you suddenly have to deal with code being executed outside of the context of a request,
such as in cron jobs.