html.py

As a side-effect of a recent programming exercise, I’ve developed a simple html-generation library in python. It takes advantage of python’s built-in lists [and list-comprehensions] in order to allow you to generate a HTML object, and str(it) out; you can also str(out)any sub-fragment, naturally.

The examples below assume an from html import *; the domain is a music collection interaction web-app.

While I like this library, it’s incomplete — I lazily implemented only what I needed to work as I needed it. I’d rather use something more maintained and fleshed out, but what retains the same expressive-simplicity. Any suggestions?

Anyways, if there’s not, you might want it, too: html-0.1.py. If you fix or extend it, please contribute back the changes.

first snow

“How to create a REST Protocol”

xml.com just posted a a nifty article by Joe Gregario titled How to Create a REST Protocol.

Right along side it are articles from Bob DuCharme on using XSLT to access [RESTful] web services and Mike Dierken on a RESTful analysis of various web services.

All quite interesting reading.