brython-dev/brython
Brython (Browser Python) is an implementation of Python 3 running in the browser observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 99
- Release rhythm 77
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 84
- age_days: 4370
- days_rel: 75
- days_push: 7
- n_releases_24m: 8
Adoption not part of the score
6611 stars · 535 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Brython is an implementation of Python 3 that runs entirely in the web browser, loaded as a JavaScript file and executing Python code embedded in HTML via <script type="text/python"> tags. It provides bindings to the DOM, events, HTML5/CSS3, and interop with existing JavaScript libraries like jQuery and D3, and ships a Python standard library subset usable client-side.
Use cases
- run python code in the browser
- replace javascript with python for a web frontend
- write client-side web apps in python
- embed python scripts directly in html pages
- manipulate dom elements and events using python
- use python standard library modules in the browser
- teach python with zero-install browser examples
- interface python with javascript libraries like jquery or d3
When to choose
- you want to build browser-based interfaces in Python instead of JavaScript
- you need a zero-install or no-build-toolchain way to run Python client-side (e.g., education, demos)
- you want to reuse Python code or stdlib modules in the browser
- you need DOM/event handling in Python with access to existing JS libraries
- you want to avoid compiling to JavaScript and just add a script tag
When to avoid
- you need maximum frontend performance, as interpreted-in-browser Python is slower than native JavaScript
- you are building a large production SPA that benefits from the mature JavaScript/TypeScript ecosystem and tooling
- you need server-side execution or filesystem access, which Brython's browser context excludes
- your project depends on C extension packages (numpy, etc.) that Brython cannot run
- you need strong typing and npm-based tooling for team development
Facets
framework · maturity active
interpreter compiler frontend-framework programming-language developer-tools web-development frontend programming-languages compilers cross-platform browser python-in-browser python-to-javascript transpiler dom-manipulation javascript-interop client-side-python html5 python3 cdn-usage script-tag
2 sources
- readme: https://github.com/brython-dev/brython · fetched 2026-08-28 · 50a68d7c952d
- registry_pypi: https://pypi.org/pypi/brython/json · fetched 2026-08-29 · 7bc787d8ab03
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| brython-dev/brython | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="brython-dev/brython")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem