Skip to main content

Emscripten compatible build script for CPython C extensions

Project description

WasmPy-Build

This tool can compile CPython C extension files, such as the ones created by Cython, to WebAssembly so that the extensions are platform independent.

The created .wasm files can be imported by WasmPy in a simmilar manner to native C extensions.

This project contains modified CPython header files as well as a build script to ease the creation of .wasm extension files.

Currently this project only supports CPython 3.8 and 3.9 but I'm hoping to add support for older versions.

Installation

To install WasmPy-Build you will first need to install the Emscripten SDK.

Install WasmPy-Build from pip

$ pip install wasmpy-build

... or build from source

$ git clone https://github.com/r-james-dev/wasmpy-build
$ cd wasmpy-build
$ python3 setup.py install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wasmpy-build-0.1.2.tar.gz (365.8 kB view details)

Uploaded Source

Built Distribution

wasmpy_build-0.1.2-py3-none-any.whl (474.3 kB view details)

Uploaded Python 3

File details

Details for the file wasmpy-build-0.1.2.tar.gz.

File metadata

  • Download URL: wasmpy-build-0.1.2.tar.gz
  • Upload date:
  • Size: 365.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for wasmpy-build-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f869a549ab06e0377644212545030cffa60f565154a34bd8a08a85dae7cfafd7
MD5 529e57e14d0b42c10b97db44fcad8c9a
BLAKE2b-256 eca2f6844462e895b3685d037bad3eab05dc0ca8df612b4fb920f9f678dc4345

See more details on using hashes here.

File details

Details for the file wasmpy_build-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wasmpy_build-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 474.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for wasmpy_build-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad36ee3eb6f7647561aa5e7de69b0a98139e56c2e67819b8697fd62eee1f27b8
MD5 fa9a63e68e953da46a6b6b6914c44314
BLAKE2b-256 af83234931a4fa2ea3f1cada6b8b0dbfcdc8337627411405dba0518d98a3ef51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page