Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Michael Droettboom bc8b55dc79 Add support for `from js import *` 2018-02-28 19:43:03 -05:00
build Fix #7: Refactor code into separate modules 2018-02-26 10:02:52 -05:00
cpython Clean up Makefile 2018-02-28 15:39:16 -05:00
src Add support for `from js import *` 2018-02-28 19:43:03 -05:00
.gitignore Add internal cpython build 2018-02-27 17:57:22 -05:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Add 'from js import X' on Python side 2018-02-28 19:43:03 -05:00
README.md Update build instructions 2018-02-28 09:12:26 -05:00

README.md

Pyodide

This provides an integration layer when running an empscripten-compiled CPython inside a web browser. It provides transparent conversion of objects between Javascript and Python and a sharing of global namespaces. When inside a browser, this means Python has full access to the Web APIs.

Building

These instructions were tested on Linux. OSX should be substantively the same.

  1. Build/install emscripten according to its instructions.

  2. Enable the emscripten environment (source emsdk_env.sh)

  3. Build this project.

    Type make.