Htpy – generate HTML from Python without templates
I built a library that to generate HTML from Python. We have been using this library with Django the last couple of months instead of classic templates and find it to be productive. It is easy to debug, works great with static type checkers and it is easy to build reusable components/partials. Give it a try!
Htpy – generate HTML from Python without templates launched on April 27, 2024 with 7 votes, #1,479 of 4,347 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 2 years on.
What it does
htpy is a library that makes writing HTML in plain Python fun and efficient, without a template language. At Personalkollen , where htpy was originally developed we often found ourselves hitting walls when using classic templates. htpy was created to improve the productiveness and experience of generating HTML from a Python backend. Leverage static types: Use mypy or pyright to type check your code. Great debugging: Avoid cryptic stack traces from templates. Use your favorite Python debugger. Easy to extend: There is no special way to define template tags/filters. Just call regular functions. Works with existing Python web framework: Works great with Django, Flask or any other Python web…from htpy.dev
Does a similar job
all alternatives →
Generate styled web pages with just Python2023 · pyvibe.com · ▲229There are a lot of Python to web app frameworks going around these days but I wanted something that was a little more lightweight that just generates HTML pages and can be embedded in Flask or other Python web servers incrementally. PyVibe uses Python components to construct a page with styling that you can use in Flask, in a static site, or even in Pyodide.
- HHHtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python2015 · amol-mandhane.github.io · ▲79
- UGUse Go's HTML/template to write React-like code2024 · ▲106
Hi all, I'm currently working on my hobby project, and one of the fun constraints I put in was to build using as less dependencies as possible. I chose Go as it has a really good standard library, and all went well for building backend. But for frontend, I was wondering whether I should break the constraint and go for React. I tried options like Web Components, but I really didn't like the ergonomics and I didn't want to use jQuery either. Out of curiosity, I was exploring Go's html/template package to see if I can write UIs in a React-like manner. I found most of the online docs using…
Bringing component-based design to Django templates2024 · django-cotton.com · ▲8Home - Django Cotton: build reusable server-side UI components in single HTML files, no Python required, fully interoperable with Django templates.
Simple-HTML – type-safe, template-less HTML rendering for Python2022 · pypi.org · ▲6Template-less HTML rendering in Python

More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 28d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 26d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 23d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 21d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 28d ago · corespeed.io
Source: Show HN post ↗
Launched alongside, April 2024
the whole month →
Supabase▲2,325The Postgres developer platform is now generally available
Dev tools · 2024 · supabase.com
Cal.com Platform▲1,601Build your pixel-perfect booking experience with Atoms
Dev tools · 2024 · cal.com

deco.cx 2.0▲1,078Build web apps 10x faster with Deno, JSX, TS & Tailwind
Dev tools · 2024 · decocms.com

