Overview

Pylons is a Python “glue” web framework, focused around combining several “best of breed” libraries together in a single integrated package. By default, it uses Mako for templates, SQLAlchemy for ORM, Routes for request dispatching, setuptools for deployment, and Beaker for sessions. It's also possible to switch in other components as desired.

Case Studies

  • BitTorrent.com was built on Pylons. Performance was decent, and we were reasonably satisfied with the framework.

Gotchas

  • Because every Pylons controller is a WSGI app and WSGI requires that functions have a specific signature, information is passed between them through global variables. However, a naive global wouldn't be threadsafe, and so Pylons uses “stacked object proxies” for the c, g, session, req, etc. variables. This makes it very difficult to inspect the Pylons request state through dir(), vars(), or other Python debugging tools.

Tips & Tricks

Alternatives

Other Resources

 
pylons.txt · Last modified: 2010/06/06 11:10 by twk
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki