Repository navigation
v0.4.0
·
1885 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Features
- Build and edit the tree, not just read it: construct
Element,Text, andCommentnodes and rearrange them with the full set of insert, wrap, extract, and normalize methods, withattrsand.text/.dataas live setters.copy,deepcopy, andpickleduplicate a subtree. (#19) by @gaborbernat. - Round out the node model:
ProcessingInstructionandCDatajoin the hierarchy,Doctypeexposes itspublic_idandsystem_id, and every node type supports structural pattern matching. (#22) by @gaborbernat.
Documentation
- Learn the write path through new tutorial, how-to, and explanation docs, backed by benchmarks showing turbohtml builds and rewrites trees about twice as fast as lxml and an order of magnitude faster than BeautifulSoup. (#19) by @gaborbernat.
- Port to turbohtml with migration guides from BeautifulSoup, lxml, selectolax, html5lib, and the standard library, each mapping the source library's idioms to their turbohtml equivalents and flagging behavior differences. (#23) by @gaborbernat.