-
Notifications
You must be signed in to change notification settings - Fork 1
Home
ASWANTH R edited this page Jun 26, 2026
·
2 revisions
Pytml is a lightweight (~15KB) JavaScript library that lets you run Python code directly in your browser. No server. No backend. Just one script tag.
Pytml acts as a bridge between Python and HTML using WebAssembly (via Pyodide). It lets you embed Python code directly in your web pages with zero configuration.
- Zero Configuration – Just add one script tag
-
Real I/O –
print()andinput()work live in the browser - Full Error Handling – See tracebacks like a local REPL
- Package Support – Use NumPy, Pandas, Matplotlib via micropip
- Privacy First – No code ever leaves your browser
- Mobile Friendly – Works on phones and tablets
<!DOCTYPE html>
<html>
<head>
<script src="https://pytml/vercel.app/pytml.js"></script>
</head>
<body>
<py>
print("Hello, world!")
name = input("What's your name? ")
print(f"Nice to meet you, {name}!")
</py>
</body>
</html>