What's a good lightweight Python MVC framework?

jon picture jon · Sep 16, 2008 · Viewed 61.5k times · Source

I know there are a ton of Python frameworks out there. Can you guys point me in the right direction? My primary concern is simplicity, I don't need a lot of extraneous features. Here are a couple of other things that I'd want (or don't want):

  • don't care for ORM, just want it to work with MySQL
  • has configurable routes
  • has support for layouts

Answer

massimo picture massimo · Oct 13, 2008

web2py is 265Kbytes of source code and 1.2MB all inclusive (compare with 4.6MB of Django). Yet web2py will do everything you need (manage session, cookies, request, response, cache, internationalization, errors/tickets, database abstraction for GAE, SQLite, MSSQL, MySQL, Postgres, Oracle, FireBird, etc.) It does not need installation - just unzip and click on it - and you can do development in your browser.

Web2py has both routes and reverse routes.

Web2py has a hierarchical template systems which means a view can extend a layout which can extend another layout, etc. views can also include other views.