Real Python, in the browser tab
BrowserPod 3.0 added initial Python support. It is in preview, running in the same pod as Node.js and Rust programs, on your user’s own device.
$npm i @leaningtech/browserpod 1import sys 2 3print("Hello from BrowserPod 👋") 4print(f"Running Python {sys.version.split()[0]}") 5 6# Run it again with: python3 main.py
Run a Python script in a pod
Python uses the same API as every other runtime: boot a pod, add a file and run it.
-
1Install
Add BrowserPod to your web project from npm.
$ npm i @leaningtech/browserpod -
2Add your script
createFile gives you a text file inside the pod.
pod.createFile("/home/main.py", "utf-8") -
3Run it
Open bash in the pod and run the script.
pod.run("bash", [], { terminal, cwd: "/home" })
What every pod includes
Python runs alongside the same command line as every pod.
Runs on the user’s device
Each pod runs inside the browser tab, on the user’s own machine.
Isolated from the host
A dedicated syscall layer keeps the pod apart from the host operating system.
Command-line tools included
bash, git, coreutils and more are ready in every pod.
Storage you choose
Pods are ephemeral by default. Pass a storageKey to keep files between sessions.
Other runtimes
One API boots a pod, opens a terminal and runs a program, whichever language it is written in.
Get started
Install BrowserPod from npm and boot your first pod.
$npm i @leaningtech/browserpod Need public URLs, GitHub or TCP from a pod? Add an API key for BrowserPod Edge, free for 1,000 hours a month.Get an API key










