Package: python3-pytidylib (0.3.2-bp156.3.1)
Python-Wrapper für HTML Tidy (tidylib) unter Python 2 und 3
`PyTidyLib`_ ist ein Python-Paket, das die Bibliothek `HTML Tidy`_ einwickelt. Dadurch können Sie aus Python-Code ungültiges (X)HTML-Markup „reparieren“. Zu den vielen Fähigkeiten der Bibliothek gehören: * Aufräumen nicht geschlossener Tags und nicht escapeter Zeichen wie Und-Zeichen * Ausgabe von HTML 4 oder XHTML, strict oder transitional, und Hinzufügen fehlender Doctypes * Umwandlung benannter Entities in numerische Entities, die dann in XML- Dokumenten ohne HTML-Doctype verwendet werden können. * Aufräumen von HTML aus Programmen wie Word (bis zu einem gewissen Grad) * Einrücken der Ausgabe, einschließlich korrektem (d. h. keinem) Einrücken für ``pre``-Elemente, was mancher (X)HTML-Einrückungscode übersieht. Kleines Verwendungsbeispiel ==================== Der folgende Code bereinigt ein ungültiges HTML-Dokument und setzt eine Option:: from tidylib import tidy_document document, errors = tidy_document('''<p>fõo <img src="bar.jpg">''', options={'numeric-entities':1}) print document print errors
Package information
- Homepage
- [http://countergram.com/open-source/pytidylib/]
- License
- MIT
- Downstream-Paketbetreuer
- Unbekannt: in der indizierten Quelle nicht gemeldet
- Quellpaket
- [python-pytidylib]
- Software project
- [python-pytidylib]
Versions and downloads for python3-pytidylib
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.3.2-bp156.3.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 20 KiB | 35 KiB | list of files | python3-pytidylib-0.3.2-bp156.3.1.noarch.rpm |
About these downloads
Jede Zeile ist Paketindex-Metadaten für eine Version, Architektur, Suite und ein Repository. Namen, URLs und Größen stammen aus der Quelle; ein Link ist ein veränderbarer Abrufort, kein Weitergabanspruch von OpenFactory.
Dependencies and recommendations for python3-pytidylib
dep: python(abi) (= 3.6)
Package not available
Paketdateipfade (16)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/python3.6/site-packages/pytidylib-0.3.2-py3.6.egg-info
- /usr/lib/python3.6/site-packages/tidylib
- /usr/lib/python3.6/site-packages/tidylib/__init__.py
- /usr/lib/python3.6/site-packages/tidylib/__pycache__
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/__init__.cpython-36.opt-1.pyc
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/__init__.cpython-36.pyc
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/sink.cpython-36.opt-1.pyc
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/sink.cpython-36.pyc
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/tidy.cpython-36.opt-1.pyc
- /usr/lib/python3.6/site-packages/tidylib/__pycache__/tidy.cpython-36.pyc
- /usr/lib/python3.6/site-packages/tidylib/sink.py
- /usr/lib/python3.6/site-packages/tidylib/tidy.py
- /usr/share/doc/packages/python3-pytidylib
- /usr/share/doc/packages/python3-pytidylib/README
- /usr/share/licenses/python3-pytidylib
- /usr/share/licenses/python3-pytidylib/LICENSE
Field source: openSUSE Leap 15.6 OSS
