# pyscript/pyscript

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/pyscript-pyscript).**

18,698 stars · 1,491 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/pyscript/pyscript
- Homepage: https://pyscript.net/
- awesome-repositories: https://awesome-repositories.com/repository/pyscript-pyscript.md

## Topics

`html` `javascript` `python` `wasm`

## Description

PyScript is a framework that enables the execution of Python code directly within a web browser. By leveraging WebAssembly, it provides a runtime environment that allows developers to perform data processing and computational logic locally, eliminating the need for a backend server to handle these tasks.

The platform distinguishes itself by bridging the gap between standard web technologies and the Python runtime. It facilitates the synchronization of data and events between the browser document object model and Python scripts, while also supporting the mounting of local or remote assets into the runtime environment.

To maintain interface responsiveness during complex operations, the framework supports offloading intensive computational tasks to background browser threads. It also allows for the integration of Python logic directly into markup through custom tags, enabling a declarative approach to building interactive web applications.

## Tags

### Development Tools & Productivity

- [Browser-Based Build Environments](https://awesome-repositories.com/f/development-tools-productivity/browser-based-build-environments.md) — Provides a platform for running computational Python scripts locally in the browser without requiring a backend server.

### Programming Languages & Runtimes

- [Python Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/webassembly/python-runtimes.md) — Executes Python code directly in the browser by running a compiled language runtime within a sandboxed WebAssembly environment.
- [Python-JavaScript Bridges](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/language-runtimes/language-host-runtime-bridges/python-javascript-bridges.md) — Provides a bidirectional bridge for synchronizing data and events between the Python runtime and the browser DOM.

### User Interface & Experience

- [Python Integration](https://awesome-repositories.com/f/user-interface-experience/component-utilities/ui-frameworks/composition-slots/html-directive-extensions/python-integration.md) — Enables declarative Python execution by embedding logic directly into HTML markup via custom tags.

### Security & Cryptography

- [Browser-Based Execution](https://awesome-repositories.com/f/security-cryptography/privacy-data-protection/local-only-data-processing/local-data-processing/browser-based-execution.md) — Performs complex calculations and data analysis locally within the browser to reduce server infrastructure requirements.

### Software Engineering & Architecture

- [Background Thread Dispatchers](https://awesome-repositories.com/f/software-engineering-architecture/background-thread-dispatchers.md) — Offloads intensive computational tasks to background browser threads to maintain interface responsiveness.
- [UI Thread Responsiveness](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/performance-optimization/frontend-rendering-loading/ui-thread-responsiveness.md) — Maintains interface responsiveness by offloading intensive Python tasks to background browser threads.
- [Virtual File Systems](https://awesome-repositories.com/f/software-engineering-architecture/virtual-file-systems.md) — Mounts local or remote assets into the runtime environment to allow Python scripts to access files as if they were local.
