webstring 0.2 released

L. C. Rees lcrees at gmail.com
Sun Apr 23 08:51:19 CEST 2006


This is the second public release of webstring.

Improvements in this version include speed enhancements and the ability
to mark groups of fields inside an XML/HTML document with an XML/HTML
attribute (by default "class") so they can be manipulated in a single
operation.

webstring is a template system that lets Python programmers manipulate
XML and HTML documents using standard Python sequence and string
operators. It is designed for those whose preferred web template
languages are Python and HTML. webstring's design is inspired by PyMeld
but with a stricter Python feel. Like PyMeld, webstring separates the
view (the XML/HTML document) from the controller (Python). It uses
XML/HTML attributes (by default "id") to mark which tags in a document
are fields where content can be inserted or substituted. webstring
flattens a document into a Python object hierarchy, exposing only parts
of the document you need to manipulate.

webstring is a wrapper for Fredrik Lundh's cElementTree package, so
both cElementTree and elementtree are required. It also requires
Fredrik Lundh's elementtidy package for trying hack through odd HTML.
These packages are available for download at:

http://effbot.org/downloads/

webstring is currently only known to work with Python 2.4.

webstring documentation can be found at:

http://psilib.sourceforge.net/webstring.html

Future planned enhancements include making webstring capable of using
lxml as an optional backend.

The file is available for download from:

http://prdownloads.sourceforge.net/psilib/webstring.py?download



More information about the Python-announce-list mailing list