PHP 8.2.30
Preview: __init__.py Size: 1.13 KB
/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/html5lib/__init__.py

"""
HTML parsing library based on the `WHATWG HTML specification
<https://whatwg.org/html>`_. The parser is designed to be compatible with
existing HTML found in the wild and implements well-defined error recovery that
is largely compatible with modern desktop web browsers.

Example usage::

    from pip._vendor import html5lib
    with open("my_document.html", "rb") as f:
        tree = html5lib.parse(f)

For convenience, this module re-exports the following names:

* :func:`~.html5parser.parse`
* :func:`~.html5parser.parseFragment`
* :class:`~.html5parser.HTMLParser`
* :func:`~.treebuilders.getTreeBuilder`
* :func:`~.treewalkers.getTreeWalker`
* :func:`~.serializer.serialize`
"""

from __future__ import absolute_import, division, unicode_literals

from .html5parser import HTMLParser, parse, parseFragment
from .treebuilders import getTreeBuilder
from .treewalkers import getTreeWalker
from .serializer import serialize

__all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder",
           "getTreeWalker", "serialize"]

# this has to be at the top level, see how setup.py parses this
#: Distribution version number.
__version__ = "1.1"

Directory Contents

Dirs: 6 × Files: 8

Name Size Perms Modified Actions
filters DIR
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
_trie DIR
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
- drwxr-xr-x 2026-02-10 08:08:53
Edit Download
81.51 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
114.44 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
15.39 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
16.34 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
31.59 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
75.23 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
4.82 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download
1.13 KB lrw-r--r-- 2026-01-07 23:10:31
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).