A Python wrapper (bindings) for tidylib tidylib is part of app-text/htmltidy. Note that dev-zope/epoz will make use of utidylib if it is installed. This package also uses dev-python/ctypes. ebuild will be attached.
Created attachment 49747 [details] dev-python/utidylib/utidylib-0.2.ebuild Note: ACCEPT_KEYWORDS should probably be re-evaluated. This module is pure Python, so it should run anywhere, but in practice will be limited to the platforms where dev-python/ctypes is available.
*** Bug 107377 has been marked as a duplicate of this bug. ***
Committed a modified version to the tree, thanks for the ebuild!