(PEP co-author here) The htm folks did a Python implementation: https://pypi.org/project/htm/
It required a janky workaround for the absence of this PEP: https://pypi.org/project/tagged/
I used these to investigate ideas about component-driven development: https://viewdom.readthedocs.io/en/latest/