original index.html from https://codepen.io/tjoen/pen/wvgvLX
there are several run_[python-lib].py scripts that demonstrate how to use the python lib in question. there are several corresponding output_[python-lib].pdf files that show the output of the run_[python-lib].py scripts.
to run:
poetry install
poetry run python run_weasyprint.py # for example