htpy - HTML in Python

We are long time Django users and have been increasingly using static typing and doing more on the server lately (with htmx).

We started generating html directly in python instead of using templates. Partials and creating components becomes straightforward. It looks a bit different and takes a little bit getting used to but we are really enjoying it so far.

Give it a try and let us know what you think:

https://htpy.dev/

5 Likes

This looks interesting!
Thanks for contributing to the python’s community!

1 Like