Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MarketingPipeline/Python-In-The-Browser
Examples & resources on how to use Python in the web browser.
https://github.com/MarketingPipeline/Python-In-The-Browser
brython compilers front-end front-end-development frontend html javascript learn-to-code pyscript python python-3 python-compiler python-examples python-html python2 python3 web-assembly web-browser web-development
Last synced: 23 days ago
JSON representation
Examples & resources on how to use Python in the web browser.
- Host: GitHub
- URL: https://github.com/MarketingPipeline/Python-In-The-Browser
- Owner: MarketingPipeline
- License: other
- Created: 2022-06-13T03:20:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T05:23:47.000Z (about 2 years ago)
- Last Synced: 2024-07-30T21:02:19.480Z (4 months ago)
- Topics: brython, compilers, front-end, front-end-development, frontend, html, javascript, learn-to-code, pyscript, python, python-3, python-compiler, python-examples, python-html, python2, python3, web-assembly, web-browser, web-development
- Homepage:
- Size: 43.9 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Python-In-The-Browser
## Compilers
Click to view the list of compilers
[cpython-emscripten:](https://github.com/dgym/cpython-emscripten) Python in the browser - CPython compiled with emscripten.
[Pyodide:](https://github.com/pyodide/pyodide) is a Python distribution for the browser and Node.js based on WebAssembly.
[pypyjs:](https://github.com/pypyjs/pypyjs) PyPy compiled to JavaScript.
[Batavia:](https://github.com/beeware/batavia) A JavaScript implementation that uses a virtual machine to run precompiled Python bytecode.
[Skulpt:](https://github.com/skulpt/skulpt) is a Javascript implementation of Python 2.x.
[Transcrypt:](https://github.com/qquick/transcrypt) Python 3.7 to JavaScript compiler - Lean, fast, open!
[PyScript:](https://github.com/pyscript/pyscript) a project that aims to combine multiple open technologies into a framework that allows users to create sophisticated browser applications with Python.
[RapydScript:](https://github.com/atsepkov/RapydScript) transpiler for a Python like language to JavaScript.
[RapydScript-ng:](https://github.com/kovidgoyal/rapydscript-ng) A improved community fork of RapydScript.
There are many projects that have focused on using Python into the web browser. Tho they do have some differences, this comparision table [Python-in-the-browser technologies](https://stromberg.dnsalias.org/~strombrg/pybrowser/python-browser.html) & the photos below will help you understand some of the differences in some of these projects / compilers.
Click to view the photos
#### Extra Resource
[PyCon AU 2018: A Web without JavaScript](https://www.youtube.com/watch?v=2XSeNQyPlTY) A video / talk about using Python in the Web Browser by [@freakboy3742](https://github.com/freakboy3742) (Founder of [BeeWare](https://github.com/beeware) & was a previous president of the [Django Software Foundation](https://www.djangoproject.com/foundation/))
## Examples
Brython Examples
For more detailed info on how to use Brython visit the [Brython documentation](https://brython.info/static_doc/en/intro.html) page- **Show Input Value**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/brython/show_input_value.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/brython/show_input_value.html)
- **Check if Input Is Integer**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/brython/check_if_interger.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/brython/check_if_interger.html)
- **Adding Integers**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/brython/adding_intergers.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/brython/adding_intergers.html)
PyScript Examples
For more detailed info on how to use PyScript visit the [PyScript documentation](https://github.com/pyscript/pyscript/blob/main/docs/tutorials/getting-started.md) page- **Show Input Value**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/PyScript/show_input_value.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/PyScript/show_input_value.html)
- **Check if Input Is Integer**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/PyScript/check_if_interger.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/PyScript/check_if_interger.html)
- **Adding Integers**
[Source](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/demos/PyScript/adding_integers.html),
[Demo](https://marketingpipeline.github.io/Python-In-The-Browser/demos/PyScript/adding_integers.html)
## Contributing ![GitHub](https://img.shields.io/github/contributors/MarketingPipeline/Python-In-The-Browser)
Want to help improve this [repo](https://github.com/MarketingPipeline/Python-In-The-Browser/)? Create a pull request with your detailed changes! If approved you will be added to the list of contributors of this awesome [repo](https://github.com/MarketingPipeline/Python-In-The-Browser/)!
See also the list of
[contributors](https://github.com/MarketingPipeline/Python-In-The-Browser/graphs/contributors) who
participate in this project.This repo is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the
[LICENSE.md](https://github.com/MarketingPipeline/Python-In-The-Browser/blob/main/LICENSE) file for
details.