nowfound

Dev tools · February 16, 2022

Simple-HTML – type-safe, template-less HTML rendering for Python

Template-less HTML rendering in Python

Simple-HTML – type-safe, template-less HTML rendering for Python launched on February 16, 2022 with 6 votes, #1,271 of 2,645 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 4 years on.

What it does

Strings, ints, floats, and Decimals are generally rendered as one would expect expect. For safety, str s are escaped by default; SafeString s can be used to bypass escaping. Tag attributes are defined as simple dictionaries -- typically you'll just use strings for both keys and values. Note that Tag attributes with None as the value will only render the attribute name: String attributes are escaped by default -- both keys and values. You can use SafeString to bypass, if needed. You can also use int , float , and Decimal instances for attribute values. prerender is a very simple function. It just render s a Node and puts the resulting string inside a SafeString (so its contents won't be…from pypi.org

Does a similar job

all alternatives →
  • Eel – a simple Python library for making little HTML GUI applications2018 · github.com · ▲201

    A little Python library for making simple Electron-like HTML/JS GUI apps - python-eel/Eel

  • Generate styled web pages with just Python2023 · pyvibe.com · ▲229

    There 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.

  • HH
    HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python2015 · amol-mandhane.github.io · ▲79
  • Htpy – generate HTML from Python without templates2024 · htpy.dev · ▲7

    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!

  • A simple, plain, minimal, classless CSS for simple, plain HTML pages2020 · github.com · ▲128

    A simple, minimal, classless stylesheet for simple HTML pages - susam/spcss

  • Hstream – quick Python web apps – Streamlit alternative using htmx2022 · github.com · ▲104

    I love Streamlit but have run into many situation where taking it from PoC to MVP state is insurmountable. With all the recent HN hype around htmx and sematic html / classless css I decided to build a Streamlit alternative using these on top of FastAPI. This has a couple advantages: 1) easier to extend when you move past PoC since the FastAPI app is exposed (allowing adding more routes) and hstream acts more like a typical web stack 2) with htmx and html (plus MVP.css) doing the heavy lifting the package is alot less complex and easier to reason about - and hopefully more performant…

More dev tools this month

the category →
  • /dev/null▲489

    a social network for devs

    Dev tools · 3d ago · dev-null.sh

  • 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▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 23d ago · openbot.run

  • Talanoa▲346

    Hi 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▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 29d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, February 2022

the whole month →
  • Bardeen▲1,286

    One-click automations for your repetitive tasks

    Growth · 2022 · bardeen.ai

  • Sha256 algorithm explained online step by step visually

    Life & fun · 2022 · sha256algorithm.com

  • Today, after years of research, development, and refinement EdgeDB graduates to a production-ready database. We are very proud to announce EdgeDB 1.0.

    Dev tools · 2022 · edgedb.com

  • Medusa▲893

    The open-source Shopify alternative

    Dev tools · 2022 · medusajs.com

  • Trusted ways to help Ukraine stop Russian aggression

    Life & fun · 2022

  • 100 ideas for your startup's first 100 users

    Growth · 2022 · first100users.com