astral-sh / astral-sh/python-build-standalone

Support Web Assembly target

Open
#70 0 comments 1 reaction 0 assignees View on GitHub
platforms
Dominant language
Python
Stars
4.4k
Forks
314
Avg merge
1d 9h
Merged PRs (30d)
27

Description

As it is said in StackOverflow [post](https://stackoverflow.com/a/47739532/941531) it is possible to compile Python for websites (browser) using Web Assembly technology.

Would be great if you also support later Web Assembly target compilations. So that your Python will be used directly from browser. Just add `python.js` script to HTML webpage and now you can call Python C API functions directly from JavaScript. Of cause one of main function to use will be `PyRun_SimpleString(code)` to just run piece of Python code.

As it is known running Web Assembly is usually almost as fast as running regular EXE binary. So if you support this technology then Python scripts can be run in browser almost as fast as from regular command line interpreter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.