tdom
A 🤘 rockin' t-string HTML templating system for Python 3.14.
tdom brings t string HTML templating to Python 3.14
tdom is a Python HTML templating library that uses the t string feature introduced in Python 3.14. It offers a syntax familiar to users of JSX, Jinja2, or Django templates.
Why t strings
Python 3.14 added t strings, which behave like f strings but use a t prefix and produce Template objects instead of immediate strings. tdom builds on that feature to provide HTML templating. The README notes the syntax feels familiar if you have used JSX, Jinja2, or Django templates, so the mental model carries over from those tools.
Installation
You install tdom with pip install tdom. If you use Astral's uv, you can try it in an isolated Python 3.14 environment with uv run --with tdom --python 3.14 python. The minimum runtime is Python 3.14, which the README records as released in October 2025.
Project status
The README marks tdom as pre-alpha software that is still under heavy development, and it warns the API may change without notice. The authors invite community feedback to help shape direction. Documentation is published online and the project is released under the MIT license.
Editorial conclusion
tdom is published under the MIT license and is currently pre-alpha software that requires Python 3.14, which was released in October 2025.
Community notes