Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nijel/utidylib
HTML Tidy Python Library
https://github.com/nijel/utidylib
html python tidy
Last synced: 20 days ago
JSON representation
HTML Tidy Python Library
- Host: GitHub
- URL: https://github.com/nijel/utidylib
- Owner: nijel
- License: mit
- Created: 2012-01-04T12:09:07.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T11:35:54.000Z (about 1 month ago)
- Last Synced: 2024-10-14T10:46:27.102Z (about 1 month ago)
- Topics: html, python, tidy
- Language: Python
- Homepage: https://utidylib.readthedocs.io/
- Size: 224 KB
- Stars: 13
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
uTidylib
========.. image:: https://github.com/nijel/utidylib/actions/workflows/test.yml/badge.svg
:target: https://github.com/nijel/utidylib/actions/workflows/test.yml
:alt: Build Status.. image:: https://codecov.io/gh/nijel/utidylib/branch/master/graph/badge.svg
:target: https://codecov.io/gh/nijel/utidylib
:alt: Coverage Status.. image:: https://readthedocs.org/projects/utidylib/badge/?version=latest
:target: http://utidylib.readthedocs.org/en/latest/
:alt: Documentation.. image:: https://img.shields.io/pypi/v/uTidylib
:target: https://pypi.org/project/uTidylib/
:alt: PyPI - VersionThis is uTidylib, the Python wrapper for the HTML cleaning
library named TidyLib. It supports both original Tidy and new
HTML5 enabled Tidy .The package is available on PyPI .
Once installed, there are two ways to get help. The simplest is:
.. code-block:: sh
$ python
>>> import tidy
>>> help(tidy)
. . .Then, of course, there's the API documentation, which
is available at .10 Second Tutorial
------------------.. code-block:: pycon
>>> import tidy
>>> print(
... tidy.parseString(
... "Hello Tidy!",
... output_xhtml=1,
... add_xml_decl=1,
... indent=1,
... tidy_mark=0,
... doctype="transitional",
... )
... )
Hello Tidy!
Good luck!