I've used https://github.com/xpublisher/weasyprint-rest for a many years but now planning to switch from it as it's archived by the maintainer.
All the best for the future of htmldocs.