Werkzeug

Other Libraries

Navigation

Contents

Because Werkzeug is just a thin layer over WSGI it's very easy to use WSGI middlewares together with Werkzeug powered applications. It's also possible to just use small parts of Werkzeug like the URL mapper etc with complete different implementations or frameworks.

Here a small list of libraries you may want to try out

Database Layers

If you want to use relational databases in your application.

SQLAlchemy
SQLAlchemy is a great database layer and object relational mapper that let you construct SQL Queries using Python expressions. It also provides connection pools and plays nice with the WSGI standard.

Template Engines

Bigger applications deserve something better than minitmpl :)

Genshi
If you like XML template engines check out Genshi. Ass-kicking template engine, but unfortunately not the fastest.
Mako
The fastest designer friendly template engine for Python. Similar to ERB in terms of the syntax but with a powerful template inheritance system and multiple namespaces.
Jinja
Sandboxes, django/smarty like template engine but with inline expressions that let you execute a subset of python expressions in your templates.

Form Validation

Here some form validation packages for WSGI applications:

Newforms Extracted
This is a project to extract Django's newforms and make that package usable by other projects, since Django doesn't seem interested in making this code framework independent.
FormEncode
FormEncode is a validation and form generation package. The validation can be used separately from the form generation. The validation works on compound data structures, with all parts being nestable. It is separate from HTTP or any other input mechanism.

Tools and Utilities

Something's missing? Check here first

wsgitools
Various small WSGI utilities like a minimal traceback or auth middleware. It also includes an SCGI server.
paste
Many tools for use with WSGI; dispatching, composition, simple applications (e.g., file serving), and more.
routes
port of the rails url mapping system.

You can find a more complete list on the wsgi.org webpage.