Alternatives
Products that do what Htmf – literal HTML in Python f-strings does
Kind of lit-html and other html`...` libraries, but in Python. It's a suite of: Few text processing utilities you could write in a hour Linter validating the f-expressions HTML beautifier VS Code syntax highlighter It was used to succesfully rebuild UIs of several internal CRUD-apps. Designed to replace the traditional jinja templates with something preserving type-safety and better IDE support. Keeping the models and templates in sync is much easier now. Maybe you would find it useful too.
- 1EA
2018 · github.com
- 2HH
2015 · amol-mandhane.github.io
- 3HG
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!
2024 · htpy.dev
- 4
- 5SH
2022 · pypi.org
- 6IW
My book titled "Python re(gex)?" is free to download through this weekend [1][2] The book covers both 're' and 'regex' modules, has plenty of examples and chapters also have cheatsheets and exercises. Code snippets, exercises, sample chapters, etc are available on GitHub repo [3] I used pandoc+xelatex [4] to generate the pdf. [1] https://gumroad.com/l/py_regex [2] https://leanpub.com/py_regex [3] https://github.com/learnbyexample/py_regular_expressions [4]…
2019
- 7CT
2017 · github.com
- 8NJ
It's very early days for the project, but I wanted to share it to see if there is interest. It is the final piece of the FastAPI server-side rendering stack I started building with FastHX and htmy (the two dependencies of this project besides FastAPI). Think of it as a more powerful and convenient alternative to tools like FastHTML, powered by FastAPI (without any modifications). I hope you'll like it.
Oct 2025 · volfpeter.github.io
- 9NL
Hey folks, I just wanted to share a quick script I threw together called notational ls. One of the big problems of any code base (or any filesystem) is that it's hard to tell what's what - folder and file names often trade brevity for clarity. So I thought about a version of `ls` that works like this: > nls web: Where python web server files are stored ad_hoc: One time scripts ios: Our IOS code images Adding descriptions is really easy too: > nls images Images SHARED between both ios and web web: Where python web server files are stored ad_hoc: One time scripts ios: Our IOS code…
2011
- 10

- 11FT
Hi, this is a Python framework I have created to make my life a little easier when creating custom linting rules. Key features: - Quick to use (~20 LOC to create a functioning linter/checker) - Works with different file formats (as in the description) - Supports multiple ignore/noqa directives (per-line ignores, range ignores, whole file, rules choice during runs) - Single check can span all elements of the file or even all files - Works directly with Python's AST - Tutorials and API reference to make users life easier All in all seems to be quite functional for my private (yet)…
2025 · github.com
- 12AO
2019 · github.com
- 13JA
I got frustrated with HTML parsing in Python. I wanted a Python HTML parser that was both correct and easy to install. The C-based ones (lxml, selectolax) are fast but not HTML5 compliant. The pure Python ones (html.parser, BeautifulSoup's default) are easy to install but choke on real-world HTML. html5lib is 80% correct but painfully slow. So I wrote JustHTML. It's: • 100% HTML5 compliant – passes all 8,500+ html5lib tests. If a browser can parse it, JustHTML can. • Pure Python, zero dependencies – pip install and go. Works on PyPy, Pyodide, anywhere. • Fast enough – ~0.1s to parse…
Dec 2025 · github.com
- 14CH
2017 · github.com
- 15SP
Hi everyone! As a side project I made a tiny static website that helps explain format strings used with Python's `struct` module. Type/paste in a format string and you get a quick explanation of the structure instead of having to look through the docs. It's open source, happy to hear any suggestions how to make it more useful.
2022 · pythonstruct.com
- 16AC
2010 · pyxc.org
- 17TO
2021 · original.littr.me
- 18IW
I wrote my own lightweight markup language, similar to Markdown, that compiles to both HTML5 and LaTeX, supports LaTeX equations (through svgtex, i.e. serverside MathJax), references, captioned figures with semantically correct tag in html, syntax highlighted code blocks, and so on. http://www.dllu.net/programming/dllup/ See the text file written in dllup markup language: http://www.dllu.net/programming/dllup/index.dllu and the PDF and LaTeX versions: http://www.dllu.net/programming/dllup/index.pdf…
2015
- 19EP
The eno notation language[1] now also has an official PHP library: https://eno-lang.org/php/ It features the same API and featureset as the JavaScript / Python / Ruby libraries, and also comes with the same extensive testsuite that has been growing during implementation of the other libraries, with already well over 90% coverage at the time of release. Happy to hear your feedback and answer any questions! [1] A user-friendly format for file-based content: https://eno-lang.org/
2018
- 20IW
2021 · github.com
- 21HA
2023 · github.com
- 22L0
What's your tool chain for data and document processing? - jq is great, but limited to JSON; and jQuery limited to HTML; templating systems get messy for non-trivial logic; TypeScript lacks pattern matching and schema support. So I built Lambda — an expressive functional language that combines the power of Lisp, TypeScript, and many DSLs like jq, jQuery, RelaxNG, etc. It has a lightweight 9 MB runtime, built from scratch in C/C++, that provides an end-to-end document processing pipeline (parse → validate/query/transform → layout → render/view). Internally, Lambda parse…
Mar 2026 · github.com
- 23BL
Quick plug in occasion of the Global Accessibility Awareness Day: BookML is a collection of CSS, scripts, and make-based magic to convert (largely unmodified) LaTeX files to HTML with as little pain as possible. The hard work is done by LaTeXML which pops up here on HN every once in a while, more often now that arXiv uses it for its accessible preprints effort. BookML is mainly aimed at HE staff working with LaTeX everyday and not having realistic chances of changing tech stack (due to workload, collaborators, and so on). Not to mention, there are virtually no alternatives to the kind of…
2024 · vlmantova.github.io
- 24JS
2023 · jinjax.scaletti.dev
Ranked by how close each launch is in meaning, then by votes. Refine with a description →