fasthtmlparser 0.1.0__cp310-abi3-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fasthtmlparser/__init__.py +38 -0
- fasthtmlparser/_fasthtmlparser.pyd +0 -0
- fasthtmlparser/_fasthtmlparser.pyi +342 -0
- fasthtmlparser/py.typed +0 -0
- fasthtmlparser-0.1.0.dist-info/METADATA +156 -0
- fasthtmlparser-0.1.0.dist-info/RECORD +9 -0
- fasthtmlparser-0.1.0.dist-info/WHEEL +4 -0
- fasthtmlparser-0.1.0.dist-info/licenses/LICENSE.md +79 -0
- fasthtmlparser-0.1.0.dist-info/sboms/fasthtmlparser-py.cyclonedx.json +611 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Fast HTML / XML parser for scraping with XPath 1.0 and CSS selectors.
|
|
2
|
+
|
|
3
|
+
A Python package over the Rust port of z3l.FastHtmlParser: a page becomes a flat list of tags that hold only
|
|
4
|
+
positions in the source; text, attributes and entities are read when they are asked for.
|
|
5
|
+
|
|
6
|
+
>>> import fasthtmlparser as fh
|
|
7
|
+
>>> doc = fh.parse('<ul><li class="a">one<li>two</ul>')
|
|
8
|
+
>>> [li.text for li in doc.css("li")]
|
|
9
|
+
['one', 'two']
|
|
10
|
+
>>> doc.xpath_value("count(//li)")
|
|
11
|
+
'2'
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from ._fasthtmlparser import (
|
|
15
|
+
CssQuery,
|
|
16
|
+
CssSelectorError,
|
|
17
|
+
Document,
|
|
18
|
+
Node,
|
|
19
|
+
XPathError,
|
|
20
|
+
XPathQuery,
|
|
21
|
+
decode_html,
|
|
22
|
+
html_to_text,
|
|
23
|
+
html_to_text_line_breaks,
|
|
24
|
+
parse,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"CssQuery",
|
|
29
|
+
"CssSelectorError",
|
|
30
|
+
"Document",
|
|
31
|
+
"Node",
|
|
32
|
+
"XPathError",
|
|
33
|
+
"XPathQuery",
|
|
34
|
+
"decode_html",
|
|
35
|
+
"html_to_text",
|
|
36
|
+
"html_to_text_line_breaks",
|
|
37
|
+
"parse",
|
|
38
|
+
]
|
|
Binary file
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
from collections.abc import Iterator
|
|
2
|
+
from typing import final
|
|
3
|
+
|
|
4
|
+
class CssSelectorError(ValueError):
|
|
5
|
+
"""An invalid CSS selector."""
|
|
6
|
+
|
|
7
|
+
class XPathError(ValueError):
|
|
8
|
+
"""An invalid XPath expression, or one that cannot be evaluated."""
|
|
9
|
+
|
|
10
|
+
def parse(html: str | bytes, url: str | None = None) -> Document:
|
|
11
|
+
"""Parses an HTML or XML page. Bytes are read as UTF-8 (invalid sequences become U+FFFD).
|
|
12
|
+
|
|
13
|
+
With url, relative links (Node.href, Node.src) are resolved against it. The GIL is released while parsing.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def decode_html(text: str) -> str:
|
|
17
|
+
"""Decodes the character references of a text (CR LF and a lone CR become LF)."""
|
|
18
|
+
|
|
19
|
+
def html_to_text(html: str) -> str:
|
|
20
|
+
"""The visible text of an HTML fragment: tags removed, whitespace collapsed, entities decoded."""
|
|
21
|
+
|
|
22
|
+
def html_to_text_line_breaks(html: str) -> str:
|
|
23
|
+
"""The text of an HTML fragment with the visible line structure kept."""
|
|
24
|
+
|
|
25
|
+
@final
|
|
26
|
+
class Document:
|
|
27
|
+
"""A parsed HTML or XML page: a flat list of tags in document order.
|
|
28
|
+
|
|
29
|
+
`len(doc)`, `doc[i]` (negative indexes too) and iteration give the tags, comments included.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __new__(cls, html: str | bytes, url: str | None = None) -> Document: ...
|
|
33
|
+
@property
|
|
34
|
+
def url(self) -> str:
|
|
35
|
+
"""The page URL given to parse(), or ""."""
|
|
36
|
+
@property
|
|
37
|
+
def source(self) -> str:
|
|
38
|
+
"""The page source."""
|
|
39
|
+
def __len__(self) -> int: ...
|
|
40
|
+
def __getitem__(self, index: int) -> Node: ...
|
|
41
|
+
def __iter__(self) -> Iterator[Node]: ...
|
|
42
|
+
def find(
|
|
43
|
+
self,
|
|
44
|
+
name: str | None = None,
|
|
45
|
+
*,
|
|
46
|
+
class_: str | None = None,
|
|
47
|
+
id: str | None = None,
|
|
48
|
+
attr: tuple[str, str] | None = None,
|
|
49
|
+
text: str | None = None,
|
|
50
|
+
id_starts_with: str | None = None,
|
|
51
|
+
text_starts_with: str | None = None,
|
|
52
|
+
body: str | None = None,
|
|
53
|
+
body_starts_with: str | None = None,
|
|
54
|
+
source: str | None = None,
|
|
55
|
+
) -> Node | None:
|
|
56
|
+
"""The first tag that matches: by name (any name, case-insensitive) and the criteria; or None.
|
|
57
|
+
|
|
58
|
+
class_: one of the space-separated classes (case-insensitive); attr: (name, decoded value);
|
|
59
|
+
text: the visible text; body: the inner HTML; source: the opening tag without '<' and '>'.
|
|
60
|
+
"""
|
|
61
|
+
def find_all(
|
|
62
|
+
self,
|
|
63
|
+
name: str | None = None,
|
|
64
|
+
*,
|
|
65
|
+
class_: str | None = None,
|
|
66
|
+
id: str | None = None,
|
|
67
|
+
attr: tuple[str, str] | None = None,
|
|
68
|
+
text: str | None = None,
|
|
69
|
+
id_starts_with: str | None = None,
|
|
70
|
+
text_starts_with: str | None = None,
|
|
71
|
+
body: str | None = None,
|
|
72
|
+
body_starts_with: str | None = None,
|
|
73
|
+
source: str | None = None,
|
|
74
|
+
) -> list[Node]:
|
|
75
|
+
"""All tags that match, in document order."""
|
|
76
|
+
def css(self, selector: str) -> list[Node]:
|
|
77
|
+
"""The tags that match the CSS selector (querySelectorAll). Raises CssSelectorError on an invalid one."""
|
|
78
|
+
def css_first(self, selector: str) -> Node | None:
|
|
79
|
+
"""The first tag that matches the CSS selector (querySelector), or None."""
|
|
80
|
+
def xpath(self, expression: str) -> list[Node]:
|
|
81
|
+
"""The tags the XPath 1.0 expression selects. Raises XPathError on an invalid expression or one that
|
|
82
|
+
gives a number, string or boolean (use xpath_value)."""
|
|
83
|
+
def xpath_first(self, expression: str) -> Node | None:
|
|
84
|
+
"""The first tag the XPath expression selects, or None."""
|
|
85
|
+
def xpath_values(self, expression: str) -> list[str]:
|
|
86
|
+
"""The values the XPath expression selects: decoded attributes, text(), visible text of tags, or the
|
|
87
|
+
result of count(), sum(), string(), ..."""
|
|
88
|
+
def xpath_value(self, expression: str) -> str:
|
|
89
|
+
"""The first value the XPath expression selects, or ""."""
|
|
90
|
+
|
|
91
|
+
@final
|
|
92
|
+
class Node:
|
|
93
|
+
"""One tag of a document. Positions are byte offsets into the UTF-8 source.
|
|
94
|
+
|
|
95
|
+
Nodes compare equal when they are the same tag of the same document, and are hashable.
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def name(self) -> str:
|
|
100
|
+
"""The lower-case tag name ("div", "!--" for comments, "custom-tag", ...)."""
|
|
101
|
+
@property
|
|
102
|
+
def index(self) -> int:
|
|
103
|
+
"""The position of the tag in the document."""
|
|
104
|
+
@property
|
|
105
|
+
def depth(self) -> int:
|
|
106
|
+
"""The nesting depth: 0 for top-level tags."""
|
|
107
|
+
@property
|
|
108
|
+
def pos(self) -> tuple[int, int]:
|
|
109
|
+
"""The byte offsets of the opening '<' and of the last '>' in the UTF-8 source."""
|
|
110
|
+
@property
|
|
111
|
+
def text(self) -> str:
|
|
112
|
+
"""The visible text: tags, comments, script and style removed, entities decoded, whitespace collapsed."""
|
|
113
|
+
@property
|
|
114
|
+
def text_line_breaks(self) -> str:
|
|
115
|
+
"""The text with the visible line structure kept: <br> and block elements give new lines, p and
|
|
116
|
+
headings paragraphs."""
|
|
117
|
+
@property
|
|
118
|
+
def body(self) -> str:
|
|
119
|
+
"""The inner HTML (trimmed); "" for tags that are not closed."""
|
|
120
|
+
@property
|
|
121
|
+
def outer_html(self) -> str:
|
|
122
|
+
"""The source of the whole element; "" for tags that are not closed."""
|
|
123
|
+
@property
|
|
124
|
+
def source(self) -> str:
|
|
125
|
+
"""The opening tag without '<' and '>': the name and the attributes."""
|
|
126
|
+
@property
|
|
127
|
+
def attrs(self) -> dict[str, str]:
|
|
128
|
+
"""The attributes as a dict of decoded values, names in lower case (the first of a repeated name wins)."""
|
|
129
|
+
def attr(self, name: str) -> str:
|
|
130
|
+
"""The decoded value of the first attribute with the name (case-insensitive); "" when it is missing."""
|
|
131
|
+
def attr_raw(self, name: str) -> str:
|
|
132
|
+
"""The value of the attribute as written in the source."""
|
|
133
|
+
def has_class(self, class_: str) -> bool:
|
|
134
|
+
"""Whether one of the space-separated classes equals class_ (case-insensitive)."""
|
|
135
|
+
@property
|
|
136
|
+
def href(self) -> str:
|
|
137
|
+
"""The link a browser follows: href decoded and made absolute against the page URL. An empty or missing
|
|
138
|
+
href gives the page URL."""
|
|
139
|
+
@property
|
|
140
|
+
def src(self) -> str:
|
|
141
|
+
"""src decoded and made absolute against the page URL."""
|
|
142
|
+
def href_from(self, base_url: str) -> str:
|
|
143
|
+
"""href resolved against base_url instead of the page URL."""
|
|
144
|
+
def src_from(self, base_url: str) -> str:
|
|
145
|
+
"""src resolved against base_url instead of the page URL."""
|
|
146
|
+
@property
|
|
147
|
+
def mailto(self) -> str:
|
|
148
|
+
"""The address of a mailto: link, or ""."""
|
|
149
|
+
@property
|
|
150
|
+
def tel(self) -> str:
|
|
151
|
+
"""The number of a tel: link, or ""."""
|
|
152
|
+
@property
|
|
153
|
+
def text_after(self) -> str:
|
|
154
|
+
"""The source text right after the tag up to the next '<'."""
|
|
155
|
+
@property
|
|
156
|
+
def parent(self) -> Node | None:
|
|
157
|
+
"""The enclosing tag, or None."""
|
|
158
|
+
@property
|
|
159
|
+
def children(self) -> list[Node]:
|
|
160
|
+
"""The direct children."""
|
|
161
|
+
@property
|
|
162
|
+
def has_children(self) -> bool:
|
|
163
|
+
"""Whether another tag starts inside this one."""
|
|
164
|
+
@property
|
|
165
|
+
def next(self) -> Node | None:
|
|
166
|
+
"""The tag that follows in document order (the first child, if there is one), or None."""
|
|
167
|
+
@property
|
|
168
|
+
def previous(self) -> Node | None:
|
|
169
|
+
"""The tag before this one in document order, or None."""
|
|
170
|
+
@property
|
|
171
|
+
def next_sibling(self) -> Node | None:
|
|
172
|
+
"""The next tag at the same level inside the same parent, or None."""
|
|
173
|
+
@property
|
|
174
|
+
def previous_sibling(self) -> Node | None:
|
|
175
|
+
"""The previous tag at the same level inside the same parent, or None."""
|
|
176
|
+
def find(
|
|
177
|
+
self,
|
|
178
|
+
name: str | None = None,
|
|
179
|
+
*,
|
|
180
|
+
class_: str | None = None,
|
|
181
|
+
id: str | None = None,
|
|
182
|
+
attr: tuple[str, str] | None = None,
|
|
183
|
+
text: str | None = None,
|
|
184
|
+
id_starts_with: str | None = None,
|
|
185
|
+
text_starts_with: str | None = None,
|
|
186
|
+
body: str | None = None,
|
|
187
|
+
body_starts_with: str | None = None,
|
|
188
|
+
source: str | None = None,
|
|
189
|
+
) -> Node | None:
|
|
190
|
+
"""The first tag inside this one that matches, or None."""
|
|
191
|
+
def find_all(
|
|
192
|
+
self,
|
|
193
|
+
name: str | None = None,
|
|
194
|
+
*,
|
|
195
|
+
class_: str | None = None,
|
|
196
|
+
id: str | None = None,
|
|
197
|
+
attr: tuple[str, str] | None = None,
|
|
198
|
+
text: str | None = None,
|
|
199
|
+
id_starts_with: str | None = None,
|
|
200
|
+
text_starts_with: str | None = None,
|
|
201
|
+
body: str | None = None,
|
|
202
|
+
body_starts_with: str | None = None,
|
|
203
|
+
source: str | None = None,
|
|
204
|
+
) -> list[Node]:
|
|
205
|
+
"""All tags inside this one that match."""
|
|
206
|
+
def matches(
|
|
207
|
+
self,
|
|
208
|
+
name: str | None = None,
|
|
209
|
+
*,
|
|
210
|
+
class_: str | None = None,
|
|
211
|
+
id: str | None = None,
|
|
212
|
+
attr: tuple[str, str] | None = None,
|
|
213
|
+
text: str | None = None,
|
|
214
|
+
id_starts_with: str | None = None,
|
|
215
|
+
text_starts_with: str | None = None,
|
|
216
|
+
body: str | None = None,
|
|
217
|
+
body_starts_with: str | None = None,
|
|
218
|
+
source: str | None = None,
|
|
219
|
+
) -> bool:
|
|
220
|
+
"""Whether this tag matches."""
|
|
221
|
+
def find_parent(
|
|
222
|
+
self,
|
|
223
|
+
name: str | None = None,
|
|
224
|
+
*,
|
|
225
|
+
class_: str | None = None,
|
|
226
|
+
id: str | None = None,
|
|
227
|
+
attr: tuple[str, str] | None = None,
|
|
228
|
+
text: str | None = None,
|
|
229
|
+
id_starts_with: str | None = None,
|
|
230
|
+
text_starts_with: str | None = None,
|
|
231
|
+
body: str | None = None,
|
|
232
|
+
body_starts_with: str | None = None,
|
|
233
|
+
source: str | None = None,
|
|
234
|
+
) -> Node | None:
|
|
235
|
+
"""The nearest enclosing tag that matches, or None."""
|
|
236
|
+
def find_next(
|
|
237
|
+
self,
|
|
238
|
+
name: str | None = None,
|
|
239
|
+
*,
|
|
240
|
+
class_: str | None = None,
|
|
241
|
+
id: str | None = None,
|
|
242
|
+
attr: tuple[str, str] | None = None,
|
|
243
|
+
text: str | None = None,
|
|
244
|
+
id_starts_with: str | None = None,
|
|
245
|
+
text_starts_with: str | None = None,
|
|
246
|
+
body: str | None = None,
|
|
247
|
+
body_starts_with: str | None = None,
|
|
248
|
+
source: str | None = None,
|
|
249
|
+
) -> Node | None:
|
|
250
|
+
"""The first tag after the end of this one that matches (tags inside it are skipped), or None."""
|
|
251
|
+
def find_next_sibling(
|
|
252
|
+
self,
|
|
253
|
+
name: str | None = None,
|
|
254
|
+
*,
|
|
255
|
+
class_: str | None = None,
|
|
256
|
+
id: str | None = None,
|
|
257
|
+
attr: tuple[str, str] | None = None,
|
|
258
|
+
text: str | None = None,
|
|
259
|
+
id_starts_with: str | None = None,
|
|
260
|
+
text_starts_with: str | None = None,
|
|
261
|
+
body: str | None = None,
|
|
262
|
+
body_starts_with: str | None = None,
|
|
263
|
+
source: str | None = None,
|
|
264
|
+
) -> Node | None:
|
|
265
|
+
"""The next sibling that matches, or None."""
|
|
266
|
+
def find_previous_sibling(
|
|
267
|
+
self,
|
|
268
|
+
name: str | None = None,
|
|
269
|
+
*,
|
|
270
|
+
class_: str | None = None,
|
|
271
|
+
id: str | None = None,
|
|
272
|
+
attr: tuple[str, str] | None = None,
|
|
273
|
+
text: str | None = None,
|
|
274
|
+
id_starts_with: str | None = None,
|
|
275
|
+
text_starts_with: str | None = None,
|
|
276
|
+
body: str | None = None,
|
|
277
|
+
body_starts_with: str | None = None,
|
|
278
|
+
source: str | None = None,
|
|
279
|
+
) -> Node | None:
|
|
280
|
+
"""The nearest previous sibling that matches, or None."""
|
|
281
|
+
def text_after_until(
|
|
282
|
+
self,
|
|
283
|
+
name: str | None = None,
|
|
284
|
+
*,
|
|
285
|
+
class_: str | None = None,
|
|
286
|
+
id: str | None = None,
|
|
287
|
+
attr: tuple[str, str] | None = None,
|
|
288
|
+
text: str | None = None,
|
|
289
|
+
id_starts_with: str | None = None,
|
|
290
|
+
text_starts_with: str | None = None,
|
|
291
|
+
body: str | None = None,
|
|
292
|
+
body_starts_with: str | None = None,
|
|
293
|
+
source: str | None = None,
|
|
294
|
+
) -> str:
|
|
295
|
+
"""The source between the end of this tag and the next tag that matches; "" when there is none."""
|
|
296
|
+
def css(self, selector: str) -> list[Node]:
|
|
297
|
+
"""The tags inside this one that match the CSS selector; it may start with '>' for the children."""
|
|
298
|
+
def css_first(self, selector: str) -> Node | None:
|
|
299
|
+
"""The first tag inside this one that matches the CSS selector, or None."""
|
|
300
|
+
def css_matches(self, selector: str) -> bool:
|
|
301
|
+
"""Whether this tag matches the CSS selector (element.matches())."""
|
|
302
|
+
def xpath(self, expression: str) -> list[Node]:
|
|
303
|
+
"""The tags the XPath expression selects, relative paths starting at this tag."""
|
|
304
|
+
def xpath_first(self, expression: str) -> Node | None:
|
|
305
|
+
"""The first tag the XPath expression selects from this tag, or None."""
|
|
306
|
+
def xpath_values(self, expression: str) -> list[str]:
|
|
307
|
+
"""The values the XPath expression selects from this tag."""
|
|
308
|
+
def xpath_value(self, expression: str) -> str:
|
|
309
|
+
"""The first value the XPath expression selects from this tag, or ""."""
|
|
310
|
+
def __eq__(self, other: object) -> bool: ...
|
|
311
|
+
def __hash__(self) -> int: ...
|
|
312
|
+
|
|
313
|
+
@final
|
|
314
|
+
class CssQuery:
|
|
315
|
+
"""A compiled CSS selector: compile once, use on any number of pages and threads."""
|
|
316
|
+
|
|
317
|
+
def __new__(cls, selector: str) -> CssQuery: ...
|
|
318
|
+
@property
|
|
319
|
+
def selector(self) -> str: ...
|
|
320
|
+
def all(self, target: Document | Node, /) -> list[Node]:
|
|
321
|
+
"""The matching tags in a document, or inside a node."""
|
|
322
|
+
def first(self, target: Document | Node, /) -> Node | None:
|
|
323
|
+
"""The first matching tag in a document, or inside a node, or None."""
|
|
324
|
+
def matches(self, node: Node, /) -> bool:
|
|
325
|
+
"""Whether the tag matches (element.matches())."""
|
|
326
|
+
|
|
327
|
+
@final
|
|
328
|
+
class XPathQuery:
|
|
329
|
+
"""A compiled XPath 1.0 expression: compile once, use on any number of pages and threads."""
|
|
330
|
+
|
|
331
|
+
def __new__(cls, expression: str) -> XPathQuery: ...
|
|
332
|
+
@property
|
|
333
|
+
def expression(self) -> str: ...
|
|
334
|
+
@property
|
|
335
|
+
def is_node_set(self) -> bool:
|
|
336
|
+
"""Whether the expression gives tags (a node-set), not a number, string or boolean."""
|
|
337
|
+
def nodes(self, target: Document | Node, /) -> list[Node]:
|
|
338
|
+
"""The selected tags, evaluated on a document or from a node."""
|
|
339
|
+
def values(self, target: Document | Node, /) -> list[str]:
|
|
340
|
+
"""The values of the selected nodes, or the result of the expression as one value."""
|
|
341
|
+
def value(self, target: Document | Node, /) -> str | None:
|
|
342
|
+
"""The value of the first selected node, or the result of the expression; None when it selects nothing."""
|
fasthtmlparser/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fasthtmlparser
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: License :: Other/Proprietary License
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Programming Language :: Rust
|
|
10
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
|
|
11
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
12
|
+
Classifier: Topic :: Text Processing :: Markup :: XML
|
|
13
|
+
Classifier: Typing :: Typed
|
|
14
|
+
License-File: LICENSE.md
|
|
15
|
+
Summary: Fast HTML / XML parser for scraping with XPath 1.0 and CSS selectors, in Rust. A port of z3l.FastHtmlParser.
|
|
16
|
+
Keywords: html,parser,xpath,css,selectors,scraping,web-scraping,rust
|
|
17
|
+
Author: z3l
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
|
+
Project-URL: Homepage, https://github.com/romanti3172/fasthtmlparser-py
|
|
21
|
+
Project-URL: Issues, https://github.com/romanti3172/fasthtmlparser-py/issues
|
|
22
|
+
Project-URL: Rust crate, https://crates.io/crates/fasthtmlparser
|
|
23
|
+
Project-URL: Source, https://github.com/romanti3172/fasthtmlparser-py
|
|
24
|
+
|
|
25
|
+
# fasthtmlparser
|
|
26
|
+
|
|
27
|
+
[](https://github.com/romanti3172/fasthtmlparser-py/actions/workflows/ci.yml)
|
|
28
|
+
[](https://pypi.org/project/fasthtmlparser/)
|
|
29
|
+
|
|
30
|
+
A fast HTML / XML parser for scraping, with **XPath 1.0** and **CSS selectors**: Python bindings of the
|
|
31
|
+
[Rust port](https://github.com/romanti3172/fasthtmlparser-rs) of
|
|
32
|
+
[z3l.FastHtmlParser](https://github.com/romanti3172/z3l.FastHtmlParser). It is built for extracting data, not for
|
|
33
|
+
building a DOM: a page becomes a flat list of tags that hold only positions in the source; text, attributes and
|
|
34
|
+
entities are read when you ask for them. Parsing is **5–7x faster than selectolax** and **20x faster than lxml**
|
|
35
|
+
(see below).
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
pip install fasthtmlparser
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Python 3.10 or later. Wheels for Linux (glibc and musl), Windows and macOS, x86-64 and ARM64; no dependencies.
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import fasthtmlparser as fh
|
|
45
|
+
|
|
46
|
+
doc = fh.parse(html, url="https://books.toscrape.com/") # str or bytes; url resolves relative links
|
|
47
|
+
|
|
48
|
+
# CSS selectors, as querySelectorAll / querySelector
|
|
49
|
+
for pod in doc.css("article.product_pod"):
|
|
50
|
+
title = pod.css_first("h3 a").attr("title")
|
|
51
|
+
price = pod.css_first("p.price_color").text
|
|
52
|
+
link = pod.css_first("h3 a").href # absolute URL
|
|
53
|
+
ul.css("> li") # the children of ul
|
|
54
|
+
|
|
55
|
+
# XPath 1.0
|
|
56
|
+
doc.xpath("//div[@class='card']//span[@class='price']") # tags
|
|
57
|
+
doc.xpath_values("//a[contains(@href, '/product/')]/@href")
|
|
58
|
+
doc.xpath_value("//dt[.='Price']/following-sibling::dd[1]")
|
|
59
|
+
doc.xpath_value("count(//table//tr)") # "12"
|
|
60
|
+
|
|
61
|
+
# compile once, reuse on any number of pages and threads
|
|
62
|
+
TITLES = fh.XPathQuery("//article//h3/a/@title")
|
|
63
|
+
TITLES.values(doc)
|
|
64
|
+
PRICES = fh.CssQuery("p.price_color")
|
|
65
|
+
PRICES.all(doc)
|
|
66
|
+
|
|
67
|
+
# search by name (any name, case-insensitive) and criteria, as in BeautifulSoup
|
|
68
|
+
pod = doc.find("article", class_="product_pod")
|
|
69
|
+
pod.find("p", class_="price_color").text
|
|
70
|
+
doc.find_all("a", attr=("rel", "next"))
|
|
71
|
+
doc.find("dt", text="Price").find_next_sibling("dd").text
|
|
72
|
+
doc.find("my-widget", id_starts_with="w-")
|
|
73
|
+
# criteria: class_, id, attr=(name, value), text, id_starts_with, text_starts_with, body, body_starts_with, source
|
|
74
|
+
|
|
75
|
+
# reading a tag
|
|
76
|
+
tag.name, tag.depth, tag.index, tag.pos # pos: byte offsets in the UTF-8 source
|
|
77
|
+
tag.text # visible text, entities decoded, whitespace collapsed
|
|
78
|
+
tag.text_line_breaks # <br> and block elements → new lines, <p> and headings → paragraphs
|
|
79
|
+
tag.attr("data-src") # decoded value, "" when missing; attr_raw(): as written
|
|
80
|
+
tag.attrs # {"href": "...", "class": "..."}
|
|
81
|
+
tag.href, tag.src # absolute URLs; href_from(base) / src_from(base)
|
|
82
|
+
tag.mailto, tag.tel # the address of a mailto: link, the number of a tel: link
|
|
83
|
+
tag.body, tag.outer_html, tag.source # inner HTML, the whole element, the opening tag
|
|
84
|
+
|
|
85
|
+
# navigation
|
|
86
|
+
tag.parent, tag.children, tag.next_sibling, tag.previous_sibling, tag.next, tag.previous
|
|
87
|
+
tag.find_parent("table"), tag.find_next("h2"), tag.text_after_until("br")
|
|
88
|
+
|
|
89
|
+
# the whole document
|
|
90
|
+
len(doc), doc[0], doc[-1], list(doc) # every tag, comments included
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
A missing tag is `None`, a missing value is `""`. An invalid selector raises `fh.CssSelectorError`, an invalid XPath
|
|
94
|
+
expression `fh.XPathError` (both are `ValueError`s); `xpath()` on an expression that gives a number or string raises
|
|
95
|
+
`XPathError` too (use `xpath_value`). The string methods compile and cache queries. A `Node` keeps its document alive,
|
|
96
|
+
nodes compare equal when they are the same tag, and are hashable. The GIL is released while a page is parsed, and
|
|
97
|
+
documents and compiled queries can be shared between threads. Type stubs are included.
|
|
98
|
+
|
|
99
|
+
CSS: type, `*`, `#id`, `.class`, attribute selectors with all operators and the `i` / `s` flags, the four combinators,
|
|
100
|
+
selector lists, `:first-child`, `:last-child`, `:only-child`, `:*-of-type`, `:nth-child(An+B [of S])` and its relatives,
|
|
101
|
+
`:not()`, `:is()`, `:where()`, `:has()`, `:empty`, `:root`, `:scope`, `:link`, `:checked`, `:disabled`, `:enabled`,
|
|
102
|
+
`:required`, `:optional`, `:contains("text")`. XPath: all axes except namespace, predicates, `|`, the operators and all
|
|
103
|
+
XPath 1.0 functions, plus `ends-with()`, `lower-case()`, `upper-case()`. HTML rules apply: names are case-insensitive,
|
|
104
|
+
the string-value of an element is its visible text, attribute values and text are decoded. HTML5 optional end tags
|
|
105
|
+
(`<li>`, `<p>`, `<td>`, `<option>` without end tags) give the same elements as in a browser; there is no full HTML5
|
|
106
|
+
tree construction (no implied `<tbody>` or `<html>`), and documents are read-only.
|
|
107
|
+
|
|
108
|
+
## Same results as the .NET version
|
|
109
|
+
|
|
110
|
+
`tests/test_conformance.py` runs the conformance data of the Rust crate through the Python package: on 117 pages
|
|
111
|
+
(fixtures, broken markup, cut-off pages, CR LF, 600-deep nesting, ...) every tag's name, position, text, text with line
|
|
112
|
+
breaks, attributes, navigation and links, and 569 XPath / CSS queries on the document and from three tags of each
|
|
113
|
+
page, must give exactly what z3l.FastHtmlParser (.NET) gives. So the bindings are checked as well as the parser.
|
|
114
|
+
|
|
115
|
+
## Benchmarks
|
|
116
|
+
|
|
117
|
+
`python bench/bench.py` (Python 3.14, AMD Ryzen 7 3800X, Windows; [`bench-results.md`](bench-results.md)). Every
|
|
118
|
+
library must extract the same records before anything is timed.
|
|
119
|
+
|
|
120
|
+
Parse a page:
|
|
121
|
+
|
|
122
|
+
| Page | fasthtmlparser | selectolax (lexbor) | lxml | parsel | BeautifulSoup (lxml) |
|
|
123
|
+
|---|---:|---:|---:|---:|---:|
|
|
124
|
+
| quotes, 11 KB | 19 μs | 95 μs | 495 μs | 499 μs | 4,368 μs |
|
|
125
|
+
| laptops, 38 KB | 53 μs | 306 μs | 1,379 μs | 1,420 μs | 12,192 μs |
|
|
126
|
+
| books, 51 KB | 65 μs | 424 μs | 1,547 μs | 1,616 μs | 15,273 μs |
|
|
127
|
+
| books x10, 510 KB | 652 μs | 3,531 μs | 13,873 μs | 14,886 μs | 15,083 μs\* |
|
|
128
|
+
| books without `</li>` `</p>` | 59 μs | 221 μs | 1,460 μs | 1,593 μs | 14,393 μs |
|
|
129
|
+
|
|
130
|
+
\* BeautifulSoup with lxml stops at the first `</html>`: it finds 20 of the 200 books on that page.
|
|
131
|
+
|
|
132
|
+
Scrape a page: parse and extract the records (books: 20 × title, price, rating; quotes: 10 × text, author, tags).
|
|
133
|
+
|
|
134
|
+
| Task | fasthtmlparser | selectolax | lxml / parsel | BeautifulSoup (lxml) |
|
|
135
|
+
|---|---:|---:|---:|---:|
|
|
136
|
+
| 20 books, CSS | 126 μs | 587 μs | parsel 2,543 μs | 19,006 μs |
|
|
137
|
+
| 20 books, XPath | 217 μs | | lxml 2,715 μs | |
|
|
138
|
+
| 20 books, `find` | 152 μs | | | |
|
|
139
|
+
| 10 quotes | 74 μs | 271 μs | parsel 1,030 μs | 5,984 μs |
|
|
140
|
+
|
|
141
|
+
## Build from source
|
|
142
|
+
|
|
143
|
+
Needs Rust 1.85+ and [maturin](https://www.maturin.rs/):
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
python -m venv .venv && .venv/Scripts/activate # or . .venv/bin/activate
|
|
147
|
+
pip install maturin pytest
|
|
148
|
+
maturin develop --release
|
|
149
|
+
pytest
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
Same terms as z3l.FastHtmlParser (see LICENSE.md): free for companies under USD 1M annual revenue and under 100
|
|
155
|
+
people, a commercial license above that. This is source-available, not an OSI open-source license.
|
|
156
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
fasthtmlparser/__init__.py,sha256=WG3dI2nBGDtu3eb8pMXXfgcLUMHLYX_0mqKEC83ckB4,886
|
|
2
|
+
fasthtmlparser/_fasthtmlparser.pyd,sha256=vIerVnztO87d-FqYw4WL9oKq9TqiILpLikFnhBeywZI,872960
|
|
3
|
+
fasthtmlparser/_fasthtmlparser.pyi,sha256=7SDuh_-VRPsB9oX5eqIdGLZe6RXzKahmswNj3LdhpXA,13915
|
|
4
|
+
fasthtmlparser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
fasthtmlparser-0.1.0.dist-info/METADATA,sha256=4XoI85uPHGJJ2BsAtLC2pXa1xtgkEZqf_Fk9bV3drg0,8146
|
|
6
|
+
fasthtmlparser-0.1.0.dist-info/WHEEL,sha256=TzjyIyBUptJHnlQyOymQYLWjtXe7MGI0m3QvmcG7PpI,96
|
|
7
|
+
fasthtmlparser-0.1.0.dist-info/licenses/LICENSE.md,sha256=aTABgfJIXk99EqwarCPN8oC8HoESlAL_VBsaxmHsgtE,4091
|
|
8
|
+
fasthtmlparser-0.1.0.dist-info/sboms/fasthtmlparser-py.cyclonedx.json,sha256=a1gDS3RTT_iOuDNA9bA1WCXZPrMoWOF2DxlbMs5gn1A,23987
|
|
9
|
+
fasthtmlparser-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# z3l.FastHtmlParser License
|
|
2
|
+
|
|
3
|
+
Copyright © 2026 z3l. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This license applies to the z3l.FastHtmlParser library, its source code, binaries and
|
|
6
|
+
NuGet packages (the "Software").
|
|
7
|
+
|
|
8
|
+
## 1. Definitions
|
|
9
|
+
|
|
10
|
+
- **"Licensee"** — the individual or legal entity that uses the Software, together with its
|
|
11
|
+
Affiliates.
|
|
12
|
+
- **"Affiliate"** — any entity that controls, is controlled by, or is under common control with
|
|
13
|
+
the Licensee.
|
|
14
|
+
- **"Annual Revenue"** — the total gross revenue of the Licensee (including all Affiliates) for
|
|
15
|
+
the last completed fiscal year, in US dollars or equivalent.
|
|
16
|
+
- **"Headcount"** — the total number of employees and individual contractors working for the
|
|
17
|
+
Licensee (including all Affiliates) on a full-time or full-time-equivalent basis, at any time
|
|
18
|
+
during the last 12 months.
|
|
19
|
+
- **"Small Licensee"** — a Licensee whose Annual Revenue is **below USD 1,000,000** and whose
|
|
20
|
+
Headcount is **below 100**. Both conditions must be met.
|
|
21
|
+
|
|
22
|
+
## 2. Free License (Small Licensees)
|
|
23
|
+
|
|
24
|
+
If the Licensee is a Small Licensee (Annual Revenue **below USD 1,000,000** and Headcount
|
|
25
|
+
**below 100**), the Licensee is granted, free of charge, a worldwide, non-exclusive,
|
|
26
|
+
non-transferable license to use, copy and modify the Software and to distribute it as part of the
|
|
27
|
+
Licensee's own applications and services, including commercial ones.
|
|
28
|
+
|
|
29
|
+
## 3. Commercial License (all other Licensees)
|
|
30
|
+
|
|
31
|
+
If the Licensee's Annual Revenue is **USD 1,000,000 or more**, or its Headcount is **100 or
|
|
32
|
+
more**, the Licensee must purchase a Commercial License.
|
|
33
|
+
|
|
34
|
+
- Price: a **one-time payment of USD 1,000** per Licensee (the Licensee together with all its
|
|
35
|
+
Affiliates).
|
|
36
|
+
- The Commercial License is perpetual and covers all current and future versions of the
|
|
37
|
+
Software, any number of developers, applications, servers and deployments of the Licensee.
|
|
38
|
+
- A Licensee that stops being a Small Licensee (its Annual Revenue or Headcount reaches the
|
|
39
|
+
threshold) while already using the Software must purchase the Commercial License within
|
|
40
|
+
30 days.
|
|
41
|
+
- To purchase: https://romanti3172.github.io/z3l.FastHtmlParser/#pricing, or contact **romanti3172@gmail.com** for an invoice.
|
|
42
|
+
|
|
43
|
+
The Commercial License grants the same rights as section 2, without the revenue and headcount
|
|
44
|
+
limits.
|
|
45
|
+
|
|
46
|
+
**One license for all z3l libraries.** The Commercial License is not limited to the Software: it
|
|
47
|
+
also covers z3l.Scraper and every other library and package published by z3l, now or in the
|
|
48
|
+
future, on the same terms. The Licensee pays USD 1,000 once and needs no other z3l license.
|
|
49
|
+
|
|
50
|
+
## 4. Conditions (both licenses)
|
|
51
|
+
|
|
52
|
+
1. This license text and the copyright notice must be kept in all copies or substantial portions
|
|
53
|
+
of the Software's source code.
|
|
54
|
+
2. The Licensee may not sell, sublicense or redistribute the Software on its own, or as part of a
|
|
55
|
+
library, SDK or component whose main purpose is HTML/XML parsing, so that it competes with the
|
|
56
|
+
Software.
|
|
57
|
+
3. Modified versions of the Software may not be published or distributed under a different
|
|
58
|
+
license.
|
|
59
|
+
4. End users of the Licensee's applications and services do not need their own license to use
|
|
60
|
+
those applications and services.
|
|
61
|
+
|
|
62
|
+
## 5. Termination
|
|
63
|
+
|
|
64
|
+
The license terminates automatically if the Licensee breaches it and does not cure the breach
|
|
65
|
+
within 30 days after becoming aware of it. On termination the Licensee must stop using and
|
|
66
|
+
distributing the Software.
|
|
67
|
+
|
|
68
|
+
## 6. No Warranty
|
|
69
|
+
|
|
70
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
71
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
72
|
+
NONINFRINGEMENT.
|
|
73
|
+
|
|
74
|
+
## 7. Limitation of Liability
|
|
75
|
+
|
|
76
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
77
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
78
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE TOTAL LIABILITY OF
|
|
79
|
+
THE COPYRIGHT HOLDERS SHALL NOT EXCEED THE AMOUNT PAID BY THE LICENSEE FOR THE SOFTWARE.
|
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bomFormat": "CycloneDX",
|
|
3
|
+
"specVersion": "1.5",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"serialNumber": "urn:uuid:a70ffc13-f614-47c2-8659-e1abb7501800",
|
|
6
|
+
"metadata": {
|
|
7
|
+
"timestamp": "2026-11-17T17:49:40.831898800Z",
|
|
8
|
+
"tools": [
|
|
9
|
+
{
|
|
10
|
+
"vendor": "CycloneDX",
|
|
11
|
+
"name": "cargo-cyclonedx",
|
|
12
|
+
"version": "0.5.9"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"component": {
|
|
16
|
+
"type": "library",
|
|
17
|
+
"bom-ref": "path+file:///D:/a/fasthtmlparser-py/fasthtmlparser-py#0.1.0",
|
|
18
|
+
"name": "fasthtmlparser-py",
|
|
19
|
+
"version": "0.1.0",
|
|
20
|
+
"scope": "required",
|
|
21
|
+
"purl": "pkg:cargo/fasthtmlparser-py@0.1.0?download_url=file://.",
|
|
22
|
+
"components": [
|
|
23
|
+
{
|
|
24
|
+
"type": "library",
|
|
25
|
+
"bom-ref": "path+file:///D:/a/fasthtmlparser-py/fasthtmlparser-py#0.1.0 bin-target-0",
|
|
26
|
+
"name": "_fasthtmlparser",
|
|
27
|
+
"version": "0.1.0",
|
|
28
|
+
"purl": "pkg:cargo/fasthtmlparser-py@0.1.0?download_url=file://.#src/lib.rs"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"properties": [
|
|
33
|
+
{
|
|
34
|
+
"name": "cdx:rustc:sbom:target:all_targets",
|
|
35
|
+
"value": "true"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"components": [
|
|
40
|
+
{
|
|
41
|
+
"type": "library",
|
|
42
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#fasthtmlparser@0.1.0",
|
|
43
|
+
"name": "fasthtmlparser",
|
|
44
|
+
"version": "0.1.0",
|
|
45
|
+
"description": "Fast HTML / XML parser for scraping with XPath 1.0 and CSS selectors: a flat tag list, lazy text and attributes. A port of z3l.FastHtmlParser.",
|
|
46
|
+
"scope": "required",
|
|
47
|
+
"hashes": [
|
|
48
|
+
{
|
|
49
|
+
"alg": "SHA-256",
|
|
50
|
+
"content": "7d35fd1e20a7a369d46059753584f38a6605ce7af65edab5babd6251ad2dbfed"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"licenses": [
|
|
54
|
+
{
|
|
55
|
+
"license": {
|
|
56
|
+
"name": "Unknown",
|
|
57
|
+
"text": {
|
|
58
|
+
"encoding": "base64",
|
|
59
|
+
"content": "IyB6M2wuRmFzdEh0bWxQYXJzZXIgTGljZW5zZQ0KDQpDb3B5cmlnaHQgwqkgMjAyNiB6M2wuIEFsbCByaWdodHMgcmVzZXJ2ZWQuDQoNClRoaXMgbGljZW5zZSBhcHBsaWVzIHRvIHRoZSB6M2wuRmFzdEh0bWxQYXJzZXIgbGlicmFyeSwgaXRzIHNvdXJjZSBjb2RlLCBiaW5hcmllcyBhbmQNCk51R2V0IHBhY2thZ2VzICh0aGUgIlNvZnR3YXJlIikuDQoNCiMjIDEuIERlZmluaXRpb25zDQoNCi0gKioiTGljZW5zZWUiKiog4oCUIHRoZSBpbmRpdmlkdWFsIG9yIGxlZ2FsIGVudGl0eSB0aGF0IHVzZXMgdGhlIFNvZnR3YXJlLCB0b2dldGhlciB3aXRoIGl0cw0KICBBZmZpbGlhdGVzLg0KLSAqKiJBZmZpbGlhdGUiKiog4oCUIGFueSBlbnRpdHkgdGhhdCBjb250cm9scywgaXMgY29udHJvbGxlZCBieSwgb3IgaXMgdW5kZXIgY29tbW9uIGNvbnRyb2wgd2l0aA0KICB0aGUgTGljZW5zZWUuDQotICoqIkFubnVhbCBSZXZlbnVlIioqIOKAlCB0aGUgdG90YWwgZ3Jvc3MgcmV2ZW51ZSBvZiB0aGUgTGljZW5zZWUgKGluY2x1ZGluZyBhbGwgQWZmaWxpYXRlcykgZm9yDQogIHRoZSBsYXN0IGNvbXBsZXRlZCBmaXNjYWwgeWVhciwgaW4gVVMgZG9sbGFycyBvciBlcXVpdmFsZW50Lg0KLSAqKiJIZWFkY291bnQiKiog4o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RZLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgVE9SVCBPUiBPVEhFUldJU0UsIEFSSVNJTkcgRlJPTSwgT1VUIE9GIE9SIElODQpDT05ORUNUSU9OIFdJVEggVEhFIFNPRlRXQVJFIE9SIFRIRSBVU0UgT1IgT1RIRVIgREVBTElOR1MgSU4gVEhFIFNPRlRXQVJFLiBUSEUgVE9UQUwgTElBQklMSVRZIE9GDQpUSEUgQ09QWVJJR0hUIEhPTERFUlMgU0hBTEwgTk9UIEVYQ0VFRCBUSEUgQU1PVU5UIFBBSUQgQlkgVEhFIExJQ0VOU0VFIEZPUiBUSEUgU09GVFdBUkUuDQo="
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"purl": "pkg:cargo/fasthtmlparser@0.1.0",
|
|
65
|
+
"externalReferences": [
|
|
66
|
+
{
|
|
67
|
+
"type": "documentation",
|
|
68
|
+
"url": "https://docs.rs/fasthtmlparser"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "vcs",
|
|
72
|
+
"url": "https://github.com/romanti3172/fasthtmlparser-rs"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "library",
|
|
78
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
|
|
79
|
+
"name": "heck",
|
|
80
|
+
"version": "0.5.0",
|
|
81
|
+
"description": "heck is a case conversion library.",
|
|
82
|
+
"scope": "required",
|
|
83
|
+
"hashes": [
|
|
84
|
+
{
|
|
85
|
+
"alg": "SHA-256",
|
|
86
|
+
"content": "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"licenses": [
|
|
90
|
+
{
|
|
91
|
+
"expression": "MIT OR Apache-2.0"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"purl": "pkg:cargo/heck@0.5.0",
|
|
95
|
+
"externalReferences": [
|
|
96
|
+
{
|
|
97
|
+
"type": "vcs",
|
|
98
|
+
"url": "https://github.com/withoutboats/heck"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "library",
|
|
104
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
|
|
105
|
+
"name": "libc",
|
|
106
|
+
"version": "0.2.191",
|
|
107
|
+
"description": "Raw FFI bindings to platform libraries like libc.",
|
|
108
|
+
"scope": "required",
|
|
109
|
+
"hashes": [
|
|
110
|
+
{
|
|
111
|
+
"alg": "SHA-256",
|
|
112
|
+
"content": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"licenses": [
|
|
116
|
+
{
|
|
117
|
+
"expression": "MIT OR Apache-2.0"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"purl": "pkg:cargo/libc@0.2.191",
|
|
121
|
+
"externalReferences": [
|
|
122
|
+
{
|
|
123
|
+
"type": "vcs",
|
|
124
|
+
"url": "https://github.com/rust-lang/libc"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "library",
|
|
130
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.3",
|
|
131
|
+
"author": "Andrew Gallant <jamslam@gmail.com>, bluss",
|
|
132
|
+
"name": "memchr",
|
|
133
|
+
"version": "2.8.3",
|
|
134
|
+
"description": "Provides extremely fast (uses SIMD on x86_64, aarch64 and wasm32) routines for 1, 2 or 3 byte search and single substring search. ",
|
|
135
|
+
"scope": "required",
|
|
136
|
+
"hashes": [
|
|
137
|
+
{
|
|
138
|
+
"alg": "SHA-256",
|
|
139
|
+
"content": "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"licenses": [
|
|
143
|
+
{
|
|
144
|
+
"expression": "Unlicense OR MIT"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"purl": "pkg:cargo/memchr@2.8.3",
|
|
148
|
+
"externalReferences": [
|
|
149
|
+
{
|
|
150
|
+
"type": "documentation",
|
|
151
|
+
"url": "https://docs.rs/memchr/"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "website",
|
|
155
|
+
"url": "https://github.com/BurntSushi/memchr"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "vcs",
|
|
159
|
+
"url": "https://github.com/BurntSushi/memchr"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "library",
|
|
165
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
|
|
166
|
+
"author": "Aleksey Kladov <aleksey.kladov@gmail.com>",
|
|
167
|
+
"name": "once_cell",
|
|
168
|
+
"version": "1.21.4",
|
|
169
|
+
"description": "Single assignment cells and lazy values.",
|
|
170
|
+
"scope": "required",
|
|
171
|
+
"hashes": [
|
|
172
|
+
{
|
|
173
|
+
"alg": "SHA-256",
|
|
174
|
+
"content": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"licenses": [
|
|
178
|
+
{
|
|
179
|
+
"expression": "MIT OR Apache-2.0"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"purl": "pkg:cargo/once_cell@1.21.4",
|
|
183
|
+
"externalReferences": [
|
|
184
|
+
{
|
|
185
|
+
"type": "documentation",
|
|
186
|
+
"url": "https://docs.rs/once_cell"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "vcs",
|
|
190
|
+
"url": "https://github.com/matklad/once_cell"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "library",
|
|
196
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
|
|
197
|
+
"author": "David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>",
|
|
198
|
+
"name": "proc-macro2",
|
|
199
|
+
"version": "1.0.107",
|
|
200
|
+
"description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.",
|
|
201
|
+
"scope": "required",
|
|
202
|
+
"hashes": [
|
|
203
|
+
{
|
|
204
|
+
"alg": "SHA-256",
|
|
205
|
+
"content": "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"licenses": [
|
|
209
|
+
{
|
|
210
|
+
"expression": "MIT OR Apache-2.0"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"purl": "pkg:cargo/proc-macro2@1.0.107",
|
|
214
|
+
"externalReferences": [
|
|
215
|
+
{
|
|
216
|
+
"type": "documentation",
|
|
217
|
+
"url": "https://docs.rs/proc-macro2"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "vcs",
|
|
221
|
+
"url": "https://github.com/dtolnay/proc-macro2"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"type": "library",
|
|
227
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
|
|
228
|
+
"author": "PyO3 Project and Contributors <https://github.com/PyO3>",
|
|
229
|
+
"name": "pyo3-build-config",
|
|
230
|
+
"version": "0.30.1",
|
|
231
|
+
"description": "Build configuration for the PyO3 ecosystem",
|
|
232
|
+
"scope": "excluded",
|
|
233
|
+
"hashes": [
|
|
234
|
+
{
|
|
235
|
+
"alg": "SHA-256",
|
|
236
|
+
"content": "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"licenses": [
|
|
240
|
+
{
|
|
241
|
+
"expression": "MIT OR Apache-2.0"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"purl": "pkg:cargo/pyo3-build-config@0.30.1",
|
|
245
|
+
"externalReferences": [
|
|
246
|
+
{
|
|
247
|
+
"type": "website",
|
|
248
|
+
"url": "https://pyo3.rs/"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "vcs",
|
|
252
|
+
"url": "https://github.com/pyo3/pyo3"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "library",
|
|
258
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
|
|
259
|
+
"author": "PyO3 Project and Contributors <https://github.com/PyO3>",
|
|
260
|
+
"name": "pyo3-ffi",
|
|
261
|
+
"version": "0.30.1",
|
|
262
|
+
"description": "Python-API bindings for the PyO3 ecosystem",
|
|
263
|
+
"scope": "required",
|
|
264
|
+
"hashes": [
|
|
265
|
+
{
|
|
266
|
+
"alg": "SHA-256",
|
|
267
|
+
"content": "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"licenses": [
|
|
271
|
+
{
|
|
272
|
+
"expression": "MIT OR Apache-2.0"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"purl": "pkg:cargo/pyo3-ffi@0.30.1",
|
|
276
|
+
"externalReferences": [
|
|
277
|
+
{
|
|
278
|
+
"type": "website",
|
|
279
|
+
"url": "https://pyo3.rs/"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "other",
|
|
283
|
+
"url": "python"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "vcs",
|
|
287
|
+
"url": "https://github.com/pyo3/pyo3"
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "library",
|
|
293
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
|
|
294
|
+
"author": "PyO3 Project and Contributors <https://github.com/PyO3>",
|
|
295
|
+
"name": "pyo3-macros-backend",
|
|
296
|
+
"version": "0.30.1",
|
|
297
|
+
"description": "Code generation for PyO3 package",
|
|
298
|
+
"scope": "required",
|
|
299
|
+
"hashes": [
|
|
300
|
+
{
|
|
301
|
+
"alg": "SHA-256",
|
|
302
|
+
"content": "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"licenses": [
|
|
306
|
+
{
|
|
307
|
+
"expression": "MIT OR Apache-2.0"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"purl": "pkg:cargo/pyo3-macros-backend@0.30.1",
|
|
311
|
+
"externalReferences": [
|
|
312
|
+
{
|
|
313
|
+
"type": "website",
|
|
314
|
+
"url": "https://pyo3.rs/"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"type": "vcs",
|
|
318
|
+
"url": "https://github.com/pyo3/pyo3"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "library",
|
|
324
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
|
|
325
|
+
"author": "PyO3 Project and Contributors <https://github.com/PyO3>",
|
|
326
|
+
"name": "pyo3-macros",
|
|
327
|
+
"version": "0.30.1",
|
|
328
|
+
"description": "Proc macros for PyO3 package",
|
|
329
|
+
"scope": "required",
|
|
330
|
+
"hashes": [
|
|
331
|
+
{
|
|
332
|
+
"alg": "SHA-256",
|
|
333
|
+
"content": "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"licenses": [
|
|
337
|
+
{
|
|
338
|
+
"expression": "MIT OR Apache-2.0"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"purl": "pkg:cargo/pyo3-macros@0.30.1",
|
|
342
|
+
"externalReferences": [
|
|
343
|
+
{
|
|
344
|
+
"type": "website",
|
|
345
|
+
"url": "https://pyo3.rs/"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "vcs",
|
|
349
|
+
"url": "https://github.com/pyo3/pyo3"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"type": "library",
|
|
355
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
|
|
356
|
+
"author": "PyO3 Project and Contributors <https://github.com/PyO3>",
|
|
357
|
+
"name": "pyo3",
|
|
358
|
+
"version": "0.30.1",
|
|
359
|
+
"description": "Bindings to Python interpreter",
|
|
360
|
+
"scope": "required",
|
|
361
|
+
"hashes": [
|
|
362
|
+
{
|
|
363
|
+
"alg": "SHA-256",
|
|
364
|
+
"content": "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"licenses": [
|
|
368
|
+
{
|
|
369
|
+
"expression": "MIT OR Apache-2.0"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"purl": "pkg:cargo/pyo3@0.30.1",
|
|
373
|
+
"externalReferences": [
|
|
374
|
+
{
|
|
375
|
+
"type": "documentation",
|
|
376
|
+
"url": "https://docs.rs/crate/pyo3/"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "website",
|
|
380
|
+
"url": "https://pyo3.rs/"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "other",
|
|
384
|
+
"url": "pyo3-python"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "vcs",
|
|
388
|
+
"url": "https://github.com/pyo3/pyo3"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"type": "library",
|
|
394
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
|
|
395
|
+
"author": "David Tolnay <dtolnay@gmail.com>",
|
|
396
|
+
"name": "quote",
|
|
397
|
+
"version": "1.0.47",
|
|
398
|
+
"description": "Quasi-quoting macro quote!(...)",
|
|
399
|
+
"scope": "required",
|
|
400
|
+
"hashes": [
|
|
401
|
+
{
|
|
402
|
+
"alg": "SHA-256",
|
|
403
|
+
"content": "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"licenses": [
|
|
407
|
+
{
|
|
408
|
+
"expression": "MIT OR Apache-2.0"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"purl": "pkg:cargo/quote@1.0.47",
|
|
412
|
+
"externalReferences": [
|
|
413
|
+
{
|
|
414
|
+
"type": "documentation",
|
|
415
|
+
"url": "https://docs.rs/quote/"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"type": "vcs",
|
|
419
|
+
"url": "https://github.com/dtolnay/quote"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "library",
|
|
425
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
|
|
426
|
+
"author": "David Tolnay <dtolnay@gmail.com>",
|
|
427
|
+
"name": "syn",
|
|
428
|
+
"version": "3.0.10",
|
|
429
|
+
"description": "Parser for Rust source code",
|
|
430
|
+
"scope": "required",
|
|
431
|
+
"hashes": [
|
|
432
|
+
{
|
|
433
|
+
"alg": "SHA-256",
|
|
434
|
+
"content": "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"licenses": [
|
|
438
|
+
{
|
|
439
|
+
"expression": "MIT OR Apache-2.0"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"purl": "pkg:cargo/syn@3.0.10",
|
|
443
|
+
"externalReferences": [
|
|
444
|
+
{
|
|
445
|
+
"type": "documentation",
|
|
446
|
+
"url": "https://docs.rs/syn"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "vcs",
|
|
450
|
+
"url": "https://github.com/dtolnay/syn"
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "library",
|
|
456
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6",
|
|
457
|
+
"author": "Dan Gohman <sunfish@mozilla.com>",
|
|
458
|
+
"name": "target-lexicon",
|
|
459
|
+
"version": "0.13.6",
|
|
460
|
+
"description": "LLVM target triple types",
|
|
461
|
+
"scope": "excluded",
|
|
462
|
+
"hashes": [
|
|
463
|
+
{
|
|
464
|
+
"alg": "SHA-256",
|
|
465
|
+
"content": "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"licenses": [
|
|
469
|
+
{
|
|
470
|
+
"expression": "Apache-2.0 WITH LLVM-exception"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"purl": "pkg:cargo/target-lexicon@0.13.6",
|
|
474
|
+
"externalReferences": [
|
|
475
|
+
{
|
|
476
|
+
"type": "documentation",
|
|
477
|
+
"url": "https://docs.rs/target-lexicon/"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "vcs",
|
|
481
|
+
"url": "https://github.com/bytecodealliance/target-lexicon"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "library",
|
|
487
|
+
"bom-ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27",
|
|
488
|
+
"author": "David Tolnay <dtolnay@gmail.com>",
|
|
489
|
+
"name": "unicode-ident",
|
|
490
|
+
"version": "1.0.27",
|
|
491
|
+
"description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31",
|
|
492
|
+
"scope": "required",
|
|
493
|
+
"hashes": [
|
|
494
|
+
{
|
|
495
|
+
"alg": "SHA-256",
|
|
496
|
+
"content": "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"licenses": [
|
|
500
|
+
{
|
|
501
|
+
"expression": "(MIT OR Apache-2.0) AND Unicode-3.0"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"purl": "pkg:cargo/unicode-ident@1.0.27",
|
|
505
|
+
"externalReferences": [
|
|
506
|
+
{
|
|
507
|
+
"type": "documentation",
|
|
508
|
+
"url": "https://docs.rs/unicode-ident"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"type": "vcs",
|
|
512
|
+
"url": "https://github.com/dtolnay/unicode-ident"
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"dependencies": [
|
|
518
|
+
{
|
|
519
|
+
"ref": "path+file:///D:/a/fasthtmlparser-py/fasthtmlparser-py#0.1.0",
|
|
520
|
+
"dependsOn": [
|
|
521
|
+
"registry+https://github.com/rust-lang/crates.io-index#fasthtmlparser@0.1.0",
|
|
522
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#fasthtmlparser@0.1.0",
|
|
527
|
+
"dependsOn": [
|
|
528
|
+
"registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.3"
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.3"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
|
|
545
|
+
"dependsOn": [
|
|
546
|
+
"registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
|
|
551
|
+
"dependsOn": [
|
|
552
|
+
"registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
|
|
557
|
+
"dependsOn": [
|
|
558
|
+
"registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
|
|
559
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
|
|
564
|
+
"dependsOn": [
|
|
565
|
+
"registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
|
|
566
|
+
"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
|
|
567
|
+
"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
|
|
568
|
+
"registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
|
|
573
|
+
"dependsOn": [
|
|
574
|
+
"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
|
|
575
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
|
|
576
|
+
"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
|
|
577
|
+
"registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
|
|
582
|
+
"dependsOn": [
|
|
583
|
+
"registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
|
|
584
|
+
"registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
|
|
585
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
|
|
586
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
|
|
587
|
+
"registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
|
|
592
|
+
"dependsOn": [
|
|
593
|
+
"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107"
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
|
|
598
|
+
"dependsOn": [
|
|
599
|
+
"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
|
|
600
|
+
"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
|
|
601
|
+
"registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
}
|