Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Roman Yurchak 5761705326 Remove six 2018-09-03 10:29:36 +02:00
.circleci Flake8 and store artefacts in CircleCI 2018-08-28 17:59:13 +03:00
benchmark Minor fixups from pull request 2018-08-06 10:01:28 -04:00
cpython Don't include full paths in sysconfigdata 2018-08-21 11:29:36 -04:00
docs Document loading packages from custom URLs 2018-08-29 15:03:45 +03:00
emsdk Fix emsdk build 2018-07-24 17:47:49 -04:00
packages Remove six 2018-09-03 10:29:36 +02:00
six Add documentation to new build tools. 2018-06-22 10:22:00 -04:00
src Document loading packages from custom URLs 2018-08-29 15:03:45 +03:00
test Throw error on invalid packages 2018-08-29 11:22:43 +03:00
tools Install to a directory, and use that, instead of just the build/lib... 2018-08-23 11:59:33 -04:00
.clang-format Add linting 2018-06-14 14:19:08 -04:00
.editorconfig Fix .editorconfig 2018-07-24 13:00:39 -04:00
.gitignore Use ccache 2018-07-24 12:58:31 -04:00
CHANGELOG.md Add some community and contributing guidelines 2018-06-07 15:43:04 -04:00
CODE-OF-CONDUCT.md Update link to recurse center code of conduct 2018-07-18 18:52:18 -04:00
CONTRIBUTING.md Add linting 2018-06-14 14:19:08 -04:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Address review comments 2018-08-28 16:20:35 +03:00
Makefile.envs Use clang-format from emcc/clang 2018-08-27 20:20:23 +03:00
README.md Copy test data in a pytest fixture 2018-08-28 14:42:14 +03:00
remove_modules.txt Lots of pandas fixes: 2018-04-24 19:29:54 -04:00
setup.cfg Copy test data in a pytest fixture 2018-08-28 14:42:14 +03:00

README.md

Pyodide

Build Status

The Python scientific stack, compiled to WebAssembly.

It provides transparent conversion of objects between Javascript and Python. When inside a browser, this means Python has full access to the Web APIs.

While closely related to the iodide project, Pyodide may be used standalone in any context where you want to run Python inside a web browser.

See the demo

Building

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

Make sure the prerequisites for emsdk are installed. Pyodide will build a custom, patched version of emsdk, so there is no need to build it yourself prior.

Additional build prerequisites are:

  • A working native compiler toolchain, enough to build CPython.
  • A native Python 3.6 or later to run the build scripts.
  • PyYAML
  • lessc to compile less to css.
  • uglifyjs to minify Javascript builds.
  • ccache (optional) recommended for much faster rebuilds.

make

Testing

Install the following dependencies into the default Python installation:

pip install pytest selenium pytest-instafail

Install geckodriver and chromedriver somewhere on your PATH.

pytest test/

Benchmarking

Install the same dependencies as for testing.

make benchmark

Linting

Python is linted with flake8. C and Javascript are linted with clang-format.

make lint