Third-party helpers¶
The following third-party Python packages are not included in WebHelpers2 due to their size or dependencies, but may be useful in applications.
A robust HTML/XML parser that can make sense of bad markup.
Clean up and pretty print HTML. This is a C library. There are several Python bindings to it.
Helpers to make a robust
.__repr__
method without reinventing the wheel. See also Python 3’sdataclasses
module.
Convert Unicode characters to ASCII equivalents. Accented letters and symbols are converted to a visual approximation, and non-Latin letters are converted to their standard Latin pronounciation. Several of the
convert_\*
functions inwebhelpers.text
will use Unidecode if it’s installed.
An object-oriented alternative to the path functions in
os
,os.path
, andshutil
. Python 3 now has a pathlib module with some of these features.