Skip to content
ASWANTH R edited this page Jun 26, 2026 · 2 revisions

Welcome to the Pytml Wiki

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.

Quick Navigation

What is Pytml?

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.

Key Features

  • Zero Configuration – Just add one script tag
  • Real I/Oprint() and input() 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

Quick Example

<!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>

Clone this wiki locally