WebHelpers is a wide variety of utility functions for web applications and other applications. It can be used with any web framework. Version 1.2 was released 2010-08-XX. See What's New for a list of changes and upgrading hints. (The helpers deprecated in 0.6 are removed in 1.0, including the entire rails suite.)
Security update in version 1.2: addresses a potential XSS attack; all users are recommended to upgrade. More in What's New.
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/question/patches, please use the pylons-discuss mailing list.
Contents What's New TODO |
General Index Module Index Search |
Download WebHelpers PDF documentation.
WebHelpers source code is at BitBucket.
Overview - Wiki - Source code - Bug tracker
To check out the Mercurial repository:
hg clone http://www.bitbucket.org/bbangert/webhelpers