Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Game Engine Development
  3. Brython

Brython

BSD-3-ClausePython3.14.3

An implementation of Python 3 that runs directly in web browsers, enabling Python as a client-side scripting language.

GitHubGitHub
6.6k stars534 forks0 contributors

What is Brython?

Brython is an implementation of Python 3 designed to run directly in web browsers, allowing developers to write client-side scripts in Python instead of JavaScript. It solves the problem of context switching between backend Python and frontend JavaScript by enabling Python to interact with DOM elements, handle events, and integrate with existing JavaScript libraries. This makes web development more accessible to Python developers and simplifies full-stack Python applications.

Target Audience

Python developers who want to use Python for client-side web scripting, educators teaching web development with Python, and teams building full-stack Python applications seeking consistency across frontend and backend.

Value Proposition

Developers choose Brython because it allows them to leverage Python's clean syntax and extensive standard library for frontend development, reducing the need to learn JavaScript for basic web interactions. Its seamless integration with JavaScript libraries and zero-install CDN option make it easy to adopt and prototype quickly.

Overview

Brython (Browser Python) is an implementation of Python 3 running in the browser

Use Cases

Best For

  • Teaching web development concepts using Python instead of JavaScript
  • Building interactive web applications where the backend is already in Python
  • Creating educational tools or demos that run entirely in the browser
  • Prototyping client-side features quickly with Python's concise syntax
  • Integrating Python data processing with web-based visualizations using libraries like D3
  • Developing Android applications using Python for the frontend logic

Not Ideal For

  • Applications requiring high-performance client-side computations or real-time graphics
  • Teams deeply invested in modern JavaScript frameworks like React or Vue.js without Python integration needs
  • Projects where minimal bundle size is critical for fast page loads
  • Developers needing extensive third-party Python libraries not adapted for browser environments

Pros & Cons

Pros

Python Syntax Familiarity

Supports Python 3 syntax and most standard library modules, allowing Python developers to write client-side code without learning JavaScript, as shown in the example using 'from browser import bind, document, alert'.

Zero-Install Prototyping

Can be loaded via CDN without local installation, enabling quick setup and deployment, demonstrated by the jsDelivr scripts in the README for easy integration.

JavaScript Library Interoperability

Interfaces with popular JavaScript libraries like jQuery, D3, and Highcharts, making it feasible to leverage existing web tools directly from Python code.

DOM and Event Handling

Includes built-in libraries to manipulate DOM elements and handle events, as illustrated in the simple example with '@bind' decorators for click events.

Cons

Performance Overhead

Running interpreted Python in the browser introduces execution speed penalties compared to native JavaScript, which can impact responsive or compute-intensive applications.

Limited Standard Library

Excludes browser-irrelevant CPython modules (e.g., disk writing), restricting functionality for tasks that rely on full Python capabilities outside the web context.

Bundle Size Impact

Loading brython.js and brython_stdlib.js adds significant download size (multiple MBs), potentially slowing initial page loads and affecting user experience on slow networks.

Frequently Asked Questions

Quick Stats

Stars6,607
Forks534
Contributors0
Open Issues90
Last commit10 days ago
CreatedSince 2014

Tags

#javascript-interop#dom-manipulation#python-3#client-side-scripting#educational-tool#web-development#frontend-framework

Built With

J
JavaScript
P
Python

Included in

Game Engine Development1.3k
Auto-fetched 6 hours ago

Related Projects

vintavinta

An opinionated list of Python frameworks, libraries, tools, and resources

Stars309,974
Forks28,364
Last commit1 day ago
KivyKivy

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS

Stars18,982
Forks3,138
Last commit21 hours ago
PygamePygame

🐍🎮 pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

Stars8,867
Forks4,148
Last commit8 months ago
Panda3DPanda3D

Powerful, mature open-source cross-platform game engine for Python and C++, developed by Disney and CMU

Stars5,187
Forks884
Last commit2 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub