It appears on the home page and opens for votes when its launch week starts.

Pytml
Run Python in HTML – No Server, No Config, Just 1 Script Tag
FreeFrameworkContent Writing327 impressionslaunches Oct 3
Every Python developer knows the drill. You write a quick script, want to share it with a colleague or show it in a blog post, and suddenly you're wrestling with Flask routes, server deployments, or heavyweight frameworks—just to get Python into a browser. It feels like overkill.
That's exactly why I built Pytml.
Pytml is a lightweight (~15KB) JavaScript library that acts as a bridge between Python and HTML via WebAssembly. Drop a single script tag into any static page, write your logic inside <py> tags, and it runs natively in the browser. No server, no configuration, no deployment steps.
What works out of the box:
- print() and input() map directly to the browser's terminal and forms.
- Full error tracebacks—debugging feels just like your local REPL.
- Pure-Python packages like NumPy, Pandas, and Matplotlib are supported via Pyodide's micropip.
Let's be transparent: Pytml is not a Flask replacement. If you need databases, heavy server-side processing, or production APIs, you'll want a proper backend. But if you're building interactive tutorials, documenting code, prototyping an idea, or just want a portfolio piece that runs Python live—Pytml makes that effortless.
It's open-source (Apache 2.0), completely free, and built by a developer who genuinely wanted sharing Python code to be less painful. I'd love for you to give it a try.
More Framework tools →80 free dev tools →
Pytml lets you run Python code directly in HTML using a tiny script tag, with no server or build steps.
- for
- Web developers, educators, and data-science hobbyists who need client-side Python demos.
- pricing
- free
- license
- Apache-2.0
Key features
- Zero configuration — Add a single <script> tag and write <py> blocks; no bundler or server needed.
- Real I/O — print() and input() work directly with the browser terminal and forms.
- Full client-side execution — Runs Python in WebAssembly; nothing leaves the browser tab.
- Framework-agnostic — Works inside React, Vue, Svelte or plain HTML by scanning the DOM for <py> tags.
- Package support via Pyodide — Access pure-Python packages like NumPy, Pandas, Matplotlib from the Pyodide distribution.
- Inline error tracebacks — Python stack traces appear in-browser with line numbers, mirroring a local REPL.
Use cases
- Interactive tutorials where students run code instantly in the browser
- Technical blog posts with live, editable Python snippets
- Data-science demos showing visualisations without a backend
Pytml FAQ
What is the bundle size of Pytml?+
The minified Pytml wrapper is about 15 KB; the Pyodide runtime (~6 MB) loads lazily from a CDN.
Can I use Pytml with React, Vue, or other JS frameworks?+
Yes, Pytml is framework-agnostic and scans the DOM after any framework renders to find <py> tags.
What Python packages are supported?+
Any package available in the Pyodide distribution, such as NumPy, Pandas, Matplotlib, SciPy, and scikit-learn.
How does Pytml handle errors and debugging?+
Python tracebacks are rendered directly in the browser terminal with line numbers, just like a local REPL.
Is any data sent to a backend?+
No, all code runs client-side in WebAssembly; nothing is transmitted to a server.
Summarized by DevHunt from pytml.js.org · Nov 5, 2026. Details may change; check the official site.

.png?width=64)







