MCPcopy Index your code
hub / github.com/pyscript/pyscript

github.com/pyscript/pyscript @2026.7.1 sqlite

repository ↗ · DeepWiki ↗ · release 2026.7.1 ↗
1,874 symbols 5,402 edges 163 files 404 documented · 22% 5 cross-repo links
README

PyScript

PyScript is an open source platform for Python in the browser.

Using PyScript is as simple as:

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width,initial-scale=1" />
        <title>PyScript!</title>
        <link
            rel="stylesheet"
            href="https://pyscript.net/releases/2026.6.2/core.css"
        />
        <script
            type="module"
            src="https://pyscript.net/releases/2026.6.2/core.js"
        ></script>
    </head>
    <body>

        <script type="mpy" terminal>
            print("Hello, world!")
        </script>
    </body>
</html>

PyScript enables the creation of rich Python applications in the browser using Pyodide (a version of CPython), MicroPython, WASM, and modern web technologies. It means Python now runs anywhere a browser runs: desktop, laptop, mobile, tablet, or any other browser enabled device.

To start building, read the Beginning PyScript tutorial.

For example applications, see here.

Other useful resources:

Every Tuesday at 15:30 UTC there is the PyScript Community Call on zoom, where we can talk about PyScript development in the open. Most of the maintainers regularly participate in the call, and everybody is welcome to join. This meeting is recorded and uploaded to our YouTube channel.

Every other Thursday at 16:00 UTC there is the PyScript FUN call: the focus of this call is to share fun projects, goofy hacks or clever uses of PyScript. It's a supportive, energetic and entertaining meeting. This meeting is also recorded and uploaded to our YouTube channel.

For more details on how to join the calls and up to date schedule, consult the official calendar:

Contribute

For technical details of the code, please see the README in the core directory.

Read the contributing guide to learn about our development process, reporting bugs and improvements, creating issues and asking questions.

Check out the development process documentation for more information on how to setup your development environment.

Governance

The PyScript organization governance is documented in a separate repository.

Supporters

PyScript is an independent open source project.

However, PyScript was born at Anaconda Inc and its core contributors are currently employed by Anaconda to work on PyScript. We would like to acknowledge and celebrate Anaconda's continued support of this project. Thank you Anaconda Inc!

Core symbols most depended-on inside this repo

register
called by 232
core/src/3rd-party/xterm.js
o
called by 230
core/src/3rd-party/xterm.js
push
called by 146
core/src/3rd-party/xterm.js
append
called by 112
core/src/stdlib/pyscript/web.py
get
called by 105
core/src/3rd-party/xterm.js
add
called by 102
core/src/3rd-party/xterm.js
fire
called by 95
core/src/3rd-party/xterm.js
set
called by 86
core/src/3rd-party/xterm.js

Shape

Method 1,182
Function 556
Class 136

Languages

TypeScript60%
Python40%

Modules by API surface

core/src/3rd-party/xterm.js803 symbols
core/tests/python/tests/test_web.py185 symbols
core/tests/python/tests/test_display.py88 symbols
core/src/3rd-party/xterm-readline.js86 symbols
core/src/stdlib/pyscript/web.py77 symbols
core/src/3rd-party/toml.js66 symbols
core/tests/python/tests/test_events.py59 symbols
core/tests/python/tests/test_util.py26 symbols
core/tests/python/tests/test_fetch.py24 symbols
core/tests/python/tests/test_storage.py23 symbols
core/tests/manual/game/aliens.py22 symbols
core/src/core.js21 symbols

Dependencies from manifests, versioned

@codemirror/commands6.10.4 · 1×
@codemirror/lang-python6.2.1 · 1×
@codemirror/state6.7.0 · 1×
@codemirror/view6.43.4 · 1×
@eslint/js10.0.1 · 1×
@playwright/test1.61.1 · 1×
@rollup/plugin-commonjs29.0.3 · 1×
@rollup/plugin-node-resolve16.0.3 · 1×
@rollup/plugin-terser1.0.0 · 1×
@ungap/with-resolvers0.1.0 · 1×
@webreflection/idb-map0.3.2 · 1×

For agents

$ claude mcp add pyscript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact