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 - Version
This is uTidylib, the Python wrapper for the HTML cleaning
library named TidyLib. It supports both original Tidy <http://tidy.sf.net> and new
HTML5 enabled Tidy <http://www.html-tidy.org/>.
The package is available on PyPI <https://pypi.org/project/uTidylib/>.
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 <https://utidylib.readthedocs.io/en/latest/>.
10 Second Tutorial
------------------
.. code-block:: pycon
>>> import tidy
>>> print(
... tidy.parseString(
... "<Html>Hello Tidy!",
... output_xhtml=1,
... add_xml_decl=1,
... indent=1,
... tidy_mark=0,
... doctype="transitional",
... )
... )
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
Hello Tidy!
</body>
</html>
Good luck!
Raw data
{
"_id": null,
"home_page": "https://github.com/nijel/utidylib",
"name": "uTidylib",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Michal \u010ciha\u0159",
"author_email": "michal@cihar.com",
"download_url": "https://files.pythonhosted.org/packages/60/3b/7e5d9f84fc7abc031290b8c277ee55a7009f9f3f3c8e15ab8be76a01c266/uTidylib-0.10.tar.gz",
"platform": null,
"description": "uTidylib\n========\n\n.. image:: https://github.com/nijel/utidylib/actions/workflows/test.yml/badge.svg\n :target: https://github.com/nijel/utidylib/actions/workflows/test.yml\n :alt: Build Status\n\n.. image:: https://codecov.io/gh/nijel/utidylib/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/nijel/utidylib\n :alt: Coverage Status\n\n.. image:: https://readthedocs.org/projects/utidylib/badge/?version=latest\n :target: http://utidylib.readthedocs.org/en/latest/\n :alt: Documentation\n\n.. image:: https://img.shields.io/pypi/v/uTidylib\n :target: https://pypi.org/project/uTidylib/\n :alt: PyPI - Version\n\n\nThis is uTidylib, the Python wrapper for the HTML cleaning\nlibrary named TidyLib. It supports both original Tidy <http://tidy.sf.net> and new\nHTML5 enabled Tidy <http://www.html-tidy.org/>.\n\nThe package is available on PyPI <https://pypi.org/project/uTidylib/>.\n\nOnce installed, there are two ways to get help. The simplest is:\n\n.. code-block:: sh\n\n $ python\n >>> import tidy\n >>> help(tidy)\n . . .\n\nThen, of course, there's the API documentation, which\nis available at <https://utidylib.readthedocs.io/en/latest/>.\n\n10 Second Tutorial\n------------------\n\n.. code-block:: pycon\n\n >>> import tidy\n >>> print(\n ... tidy.parseString(\n ... \"<Html>Hello Tidy!\",\n ... output_xhtml=1,\n ... add_xml_decl=1,\n ... indent=1,\n ... tidy_mark=0,\n ... doctype=\"transitional\",\n ... )\n ... )\n <?xml version=\"1.0\"?>\n <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n <html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <title></title>\n </head>\n <body>\n Hello Tidy!\n </body>\n </html>\n\n\nGood luck!\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Wrapper for HTML Tidy",
"version": "0.10",
"project_urls": {
"Documentation": "https://utidylib.readthedocs.io/",
"Download": "https://github.com/nijel/utidylib",
"Funding": "https://liberapay.com/nijel",
"Homepage": "https://github.com/nijel/utidylib",
"Issue Tracker": "https://github.com/nijel/utidylib/issues",
"Source Code": "https://github.com/nijel/utidylib"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c2e354156cd94f0c8b80c3a6432fdb49b0ff73458c6f815080d17c187b567cd7",
"md5": "51b28b010d473458c8174586235ff78e",
"sha256": "672cd4d5ec28d5e3e4496c0e104569e4342ff32f9fd28b74871174fae66eee7c"
},
"downloads": -1,
"filename": "uTidylib-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51b28b010d473458c8174586235ff78e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 10101,
"upload_time": "2024-03-05T11:42:00",
"upload_time_iso_8601": "2024-03-05T11:42:00.719467Z",
"url": "https://files.pythonhosted.org/packages/c2/e3/54156cd94f0c8b80c3a6432fdb49b0ff73458c6f815080d17c187b567cd7/uTidylib-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "603b7e5d9f84fc7abc031290b8c277ee55a7009f9f3f3c8e15ab8be76a01c266",
"md5": "c3d218dcffd2ca682c5120f0dc427ceb",
"sha256": "95fe538c6cd1ea08d7df99d56a5816cb0571a06038189c03518024064edee60f"
},
"downloads": -1,
"filename": "uTidylib-0.10.tar.gz",
"has_sig": false,
"md5_digest": "c3d218dcffd2ca682c5120f0dc427ceb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 16959,
"upload_time": "2024-03-05T11:42:01",
"upload_time_iso_8601": "2024-03-05T11:42:01.783912Z",
"url": "https://files.pythonhosted.org/packages/60/3b/7e5d9f84fc7abc031290b8c277ee55a7009f9f3f3c8e15ab8be76a01c266/uTidylib-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-05 11:42:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nijel",
"github_project": "utidylib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "utidylib"
}