|Version:||1.3, released 2011-03-23|
WebHelpers is a wide variety of utility functions for web applications and other applications. It can be used with any web framework. See What’s New for a list of changes and upgrading hints.
Version 1.3 improves Pyramid support in Paginate via URL generator classes. (Note: 1.3b1 had a performance regression in Paginate. This is fixed in 1.3 final.)
WebHelpers includes the widely-used HTML tag builder with smart escaping and convenience functions for common tags such as form fields. The common builder ensures the tags are syntactically correct and prevent cross-site scripting attacks and double-escaping.
Other helpers perform text processing, split a large number of records into pages, generate Atom/RSS feeds with geographical (GIS) data, handle MIME types, calculate numerica statistics, and more. There are also high-level container types, including a value counter and accumulator. There are lists of country names, country codes, US states, Canadian provinces, and UK counties.
WebHelpers itself depends only on MarkupSafe, which has an optional C speedup for HTML escaping. However, a few individual helpers depend on Routes, Unidecode, WebOb, or Pylons as noted in their documentation. WebHelpers requires Python 2.4 or higher, and has not yet been tested with Python 3. An extensive test suite for doctest and Nose is included.
For support/questions/patches, please use the pylons-discuss mailing list.