Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/turbohtml/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""turbohtml: fast, typed HTML utilities powered by a C-accelerated core."""
3from __future__ import annotations
5from ._html import (
6 Axis,
7 CData,
8 Comment,
9 Doctype,
10 Document,
11 DocumentFragment,
12 Element,
13 Formatter,
14 HTMLParseError,
15 IncrementalParser,
16 Indent,
17 Minify,
18 Namespace,
19 Node,
20 ParseError,
21 ProcessingInstruction,
22 Range,
23 ShadowRoot,
24 StaticRange,
25 Text,
26 Token,
27 Tokenizer,
28 TokenType,
29 XPath,
30 annotation_surface,
31 annotation_tags,
32 escape,
33 parse,
34 parse_fragment,
35 parse_xml,
36 tokenize,
37 unescape,
38)
39from ._internal import (
40 _cssmin, # ruff:ignore[unused-import] # registers the CSSMinify record type with the C core on import
41 _jsminify, # ruff:ignore[unused-import] # registers the JSMinify record type with the C core on import
42)
43from ._internal._locations import SourceLocation, SourceSpan # registers the source-location record types on import
44from ._internal._render import Canonical, Html, Markdown, PlainText
45from ._internal._selectors import SelectorSyntaxError # registers the selector error type with the C core on import
46from ._version import __version__
47from .build import E, ElementMaker
48from .extract._article import Article # registers the Article record type with the C core on import
49from .extract._feed import Entry, Feed # registers the Feed/Entry record types with the C core on import
50from .extract._links import Link # registers the Link record type with the C core on import
51from .extract._structured_data import ( # registers the JSON-LD parser and record classes with the C core on import
52 MicrodataItem,
53 OpenGraph,
54 RdfaItem,
55 StructuredData,
56)
57from .mutations import MutationObserver, MutationRecord # registers the MutationRecord type on import
58from .query._xpath import XPathString # registers the smart-string type with the C core on import
59from .traverse import NodeFilter, NodeIterator, TreeWalker
61__all__ = [
62 "Article",
63 "Axis",
64 "CData",
65 "Canonical",
66 "Comment",
67 "Doctype",
68 "Document",
69 "DocumentFragment",
70 "E",
71 "Element",
72 "ElementMaker",
73 "Entry",
74 "Feed",
75 "Formatter",
76 "HTMLParseError",
77 "Html",
78 "IncrementalParser",
79 "Indent",
80 "Link",
81 "Markdown",
82 "MicrodataItem",
83 "Minify",
84 "MutationObserver",
85 "MutationRecord",
86 "Namespace",
87 "Node",
88 "NodeFilter",
89 "NodeIterator",
90 "OpenGraph",
91 "ParseError",
92 "PlainText",
93 "ProcessingInstruction",
94 "Range",
95 "RdfaItem",
96 "SelectorSyntaxError",
97 "ShadowRoot",
98 "SourceLocation",
99 "SourceSpan",
100 "StaticRange",
101 "StructuredData",
102 "Text",
103 "Token",
104 "TokenType",
105 "Tokenizer",
106 "TreeWalker",
107 "XPath",
108 "XPathString",
109 "__version__",
110 "annotation_surface",
111 "annotation_tags",
112 "escape",
113 "parse",
114 "parse_fragment",
115 "parse_xml",
116 "tokenize",
117 "unescape",
118]