Inscriptis

Latest version: v2.5.0

Safety actively analyzes 630130 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.2

- tables: add support for vertical (`valign`, `css: text-vertical-alginment`) and horizontal (`align`) cell alignment (fixes: 33)
- improved handling of HTML attributes and styles
- code cleanup
- migrated build from travis to github actions

1.1.2

* ignore top margins at the beginning of a document.
* more liberal licensing:
- the license change has been triggered by another project that created a Java port of inscriptis.
- to facilitate the free sharing of code and ideas between our two projects, we have (i) obtained the permission of all contributors for a license change, and (ii) changed the inscriptis license to the "Apache License 2.0".

1.1.1

- minor performance improvements and code optimizations
- added Python 3.9 test environment
- improved test coverage
- updated package metadata
- improved tox configuration

1.1

1. added support for rendering tags with the `white-space: pre` CSS attribute (e.g. `<pre>` which is often used for formatting code).
2. **API change:** A `ParserConfig` object replaces the parameters `display_images`, `dedpulicate_captions`, `display_links` and `indentation` in `get_text()` and for initializing the `Inscriptis` class.
python

from lxml.html import fromstring
from inscriptis.model.config import ParserConfig

html_tree = fromstring(html)
optional parser configuration fine tuning
config = ParserConfig(display_links=True, display_anchors=True)
parser = Inscriptis(html_tree, config)
text = parser.get_text()

3. command line client:
- added option for displaying anchor links
- `--encoding` not sets the HTML and output encoding
- new `--version` option
4. Web service
- use the related CSS profile per default
- added `version` call
5. Documentation fixes and improvements

1.0

Based on inscriptis for Python v1.1.2

See https://github.com/weblyzard/inscriptis/releases/tag/1.1.2

0.0.4.1.1

Use the `extended` indentation strategy per default as outlined in the README.md.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.