WebHelpers / docs / index.rst

WebHelpers

Version: 1.3, released 2011-03-23
PyPI:http://pypi.python.org/pypi/WebHelpers
Docs:http://sluggo.scrapping.cc/python/WebHelpers/index.html
Source:https://bitbucket.org/bbangert/webhelpers (Mercurial)
WebHelpers Logo

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.

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 ProjectModifiedEvent.java.
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.