stucco_auth /

Filename Size Date modified Message
85 B
146 B
67 B
1.5 KB
105 B
1.5 KB
4.1 KB
901 B
541 B
1.3 KB


SQLAlchemy-backed username/password authentication for the Pyramid web framework.

What You Get

  • Versioned schema with stucco_evolution
  • SQLAlchemy-mapped User, Group, and Settings classes
  • BCRYPT password encryption with cryptacular
  • Pyramid views to login and logout
  • Traversal, not routes
  • Jinja2 templates for the views
  • Uni-Form CSS themed login form
  • YUI 3 CSS in the base template
  • 99% test coverage

What You Don't Get

  • Any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.


It's easy enough to add the stucco_auth views to your application by calling:

from pyramid.config import Configurator
config = Configurator(...)

Unfortunately, stucco_auth requires many things from a host Pyramid application before it will work properly:

  • A configured authentication and authorization policy. Login and logout views don't make sense otherwise.
  • A transaction-managed SQLAlchemy session made available as request.db
  • stucco_auth's schema instantiated into that database
  • request.session for flash messages
  • Jinja2 templating
  • A stucco_auth.interfaces.IAuthRoot instance in the resource tree. login/ and logout/ are resolved relative to this object.

The demo application, stucco_auth.main(), provides one example of how to set this up.

If you have any questions, please ask DanielHolth in IRC or on one of the Pylons mailing lists.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.