Skip to Content
Getting StartedIntroduction

Welcome to the Edge Python docs! 👋 Edge is a sandboxed subset of Python, compiled to a ~200 KB WebAssembly binary and built in Rust to run in the browser. Embed your full business logic, run LLMs client-side, and build frontend apps.

Ecosystem

  1. Quickstart: Run your first Edge Python program in under a minute.
  2. What Edge Python is: Scope, philosophy, and what intentionally isn’t supported.
  3. Syntax: The language guide.
  4. Reference: All the builtin functions and methods.
  5. Implementation: Compiler architecture, dispatch model, and runtime layout.

Try it

Browser

Try to edit or execute this script:

import time text = "the quick brown fox" words = {w: len(w) for w in text.split()} for w, n in words.items(): print(f"{w:>6} -> {n}") time.sleep(0.2)
Output · expected
the -> 3 quick -> 5 brown -> 5 fox -> 3

Command Line Interface

Or download it to your machine (reference docs):

# Compatible with macOS, Linux and WSL curl -fsSL https://cdn.edgepython.com/cli/install.sh | sh edge -h # List all commands

Need help?

Looking to integrate Edge into your app: run Python business logic in your users’ browsers, or anything else? Get in touch: email

Last updated on