Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Michael Droettboom 6701273754 Add a custom Python output handler 2018-04-25 13:00:25 -04:00
benchmark Fix benchmark plot. Don't include Numpy import in benchmark timing. 2018-04-11 08:51:41 -04:00
cpython Mark broken tests so the test suite runs 2018-04-11 15:26:19 -04:00
dateutil Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
emsdk Don't remove .emscripten 2018-04-19 17:35:56 -04:00
numpy Turn on link-time optimizations, now that compiler works 2018-04-19 14:13:47 -04:00
pandas Fix mmap-removal patch 2018-04-25 11:46:04 -04:00
pytz Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
six Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
src Add a custom Python output handler 2018-04-25 13:00:25 -04:00
test Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
.gitignore Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
.travis.yml Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
Makefile.envs Use pre-built toolchain 2018-04-02 13:06:36 -04:00
README.md Add benchmarking instructions 2018-04-11 10:17:02 -04:00
remove_modules.txt Lots of pandas fixes: 2018-04-24 19:29:54 -04:00

README.md

Pyodide

Build Status

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.

Make sure the prerequisites for emsdk are installed.

Type make.

(The build downloads and builds a local, patched version of emsdk, then downloads and builds Python and Numpy, and finally builds the pyodide-specific code.)

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

Benchmarking

  1. Install the same dependencies as for testing.

  2. make benchmark