This is a Python wrapper around the HTML Tidy library. Quick start example:

from tidylib import Tidy
tidy = Tidy()
document, errors = tidy.tidy_document('<p>fõo ',
    options={'alt-text': 'baz'})
print(document)
print(errors)

For full documentation, see the docs/ directory.
