www/py-html5-parser 0.4.12_2 MidnightBSD
Fast implementation of the HTML 5 parsing spec for Python
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
a05b377b53- License
- Apache-2.0
- Categories
- www, python
Description
A fast implementation of the HTML 5 parsing spec for Python. Parsing is done in C using a variant of the gumbo parser. The gumbo parse tree is then transformed into an lxml tree, also in C, yielding parse times that can be a thirtieth of the html5lib parse times. That is a speedup of 30x. This differs, for instance, from the gumbo python bindings, where the initial parsing is done in C but the transformation into the final tree is done in python.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | www/py-html5-parser | 0.4.12_2 |
| FreeBSD | www/py-html5-parser | 0.4.12_4 |
| OpenBSD | www/py-html5-parser | 0.5.0 |
| DragonFly | www/py-html5-parser | 0.4.12_1 |
| HardenedBSD | www/py-html5-parser | 0.4.12_4 |
| GhostBSD | www/py-html5-parser | 0.4.12_4 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}html5-parser
From mports:
cd /usr/mports/www/py-html5-parser && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5-parser>0:www/py-html5-parser
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}lxml>=4.9.2: devel/py-lxml
Build dependencies 1
Required by 2
Configuration
No options to configure.
- USES
- gnome pkgconfig python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| html5-parser-0.4.12.tar.gz | 270861 | 3d7f89841aa48b976311f43863178c34c141abcf1dd45b67a7339e61cffe5306 |
Master sites 1
- PYPI