PKG-INFO 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Metadata-Version: 1.0
  2. Name: pytidylib
  3. Version: 0.2.1
  4. Summary: Python wrapper for HTML Tidy (tidylib)
  5. Home-page: http://countergram.com/open-source/pytidylib/
  6. Author: Jason Stitt
  7. Author-email: js@jasonstitt.com
  8. License: UNKNOWN
  9. Download-URL: http://cloud.github.com/downloads/countergram/pytidylib/pytidylib-0.2.1.tar.gz
  10. Description: 0.2.0: Works on Windows! See documentation for available DLL download
  11. locations. Documentation rewritten and expanded.
  12. `PyTidyLib`_ is a Python package that wraps the `HTML Tidy`_ library. This
  13. allows you, from Python code, to "fix" invalid (X)HTML markup. Some of the
  14. library's many capabilities include:
  15. * Clean up unclosed tags and unescaped characters such as ampersands
  16. * Output HTML 4 or XHTML, strict or transitional, and add missing doctypes
  17. * Convert named entities to numeric entities, which can then be used in XML
  18. documents without an HTML doctype.
  19. * Clean up HTML from programs such as Word (to an extent)
  20. * Indent the output, including proper (i.e. no) indenting for ``pre`` elements,
  21. which some (X)HTML indenting code overlooks.
  22. Small example of use
  23. ====================
  24. The following code cleans up an invalid HTML document and sets an option::
  25. from tidylib import tidy_document
  26. document, errors = tidy_document('''<p>f&otilde;o <img src="bar.jpg">''',
  27. options={'numeric-entities':1})
  28. print document
  29. print errors
  30. Docs
  31. ====
  32. Documentation is shipped with the source distribution and is available at
  33. the `PyTidyLib`_ web page.
  34. .. _`HTML Tidy`: http://tidy.sourceforge.net/
  35. .. _`PyTidyLib`: http://countergram.com/open-source/pytidylib/
  36. Platform: UNKNOWN
  37. Classifier: Development Status :: 4 - Beta
  38. Classifier: Environment :: Other Environment
  39. Classifier: Intended Audience :: Developers
  40. Classifier: License :: OSI Approved :: MIT License
  41. Classifier: Programming Language :: Python
  42. Classifier: Natural Language :: English
  43. Classifier: Topic :: Utilities
  44. Classifier: Topic :: Text Processing :: Markup :: HTML
  45. Classifier: Topic :: Text Processing :: Markup :: XML