This is a Python wrapper for @mozilla/readability, a standalone version of the readability library used for Firefox Reader View.
pip install python-readability
from readability import parse
parse(html_string, **options)
See the original documentation and the type hints for details.
Since this package is a wrapper for the original JavaScript library, it use a JavaScript engine to run the code.
For now, if you are running this package in a regular CPython environment, it will use pythonmonkey to interpret JavaScript, which requires Python 3.8+.
This package is also available inside pyodide because it can use the native JavaScript engine that pyodide
runs on.