Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Michael Droettboom 2ad135ef06 Add testing 2018-03-30 10:51:13 -04:00
cpython First working Numpy 2018-03-20 18:58:59 -04:00
numpy Use WASM instead of asm.js 2018-03-29 15:24:33 -04:00
src Simplify pyodide.js 2018-03-30 10:35:28 -04:00
test Add testing 2018-03-30 10:51:13 -04:00
.gitignore Add testing 2018-03-30 10:51:13 -04:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Add testing 2018-03-30 10:51:13 -04:00
README.md Add testing 2018-03-30 10:51:13 -04:00
remove_modules.txt Fix threading 2018-03-23 09:44:47 -04: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.

Testing

  1. Install the following dependencies into the default Python installation:

    pip install pytest selenium

  2. Install geckodriver somewhere on your PATH.

  3. make test