Skip to main content

WebAssembly build tool 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.

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, 3.9, 3.10 and 3.11 but I'm hoping to add support for older and future versions.

The project will automatically download wasi-sdk on first use.

Installation

Install from pip

pip install wasmpy-build

or build from source

git clone --recurse-submodules https://github.com/olivi-r/wasmpy-build
cd wasmpy-build
python -m pip install -r requirements.txt
python patch_headers.py
python -m pip 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.3.1.tar.gz (761.1 kB view details)

Uploaded Source

Built Distribution

wasmpy_build-0.3.1-py3-none-any.whl (995.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wasmpy-build-0.3.1.tar.gz
  • Upload date:
  • Size: 761.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wasmpy-build-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9cd8436a3e62425527e65bc447a836e3065f498a1af4ac5f55839e2059b4d082
MD5 f12d5016128db9433ba331d69185ae73
BLAKE2b-256 9c1a2644eb8ce64920f49707b494d2502c9819d3fc552e7b1da47a5ab1b963c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wasmpy_build-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 995.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wasmpy_build-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55da4e9f0e292258e098a255dd978bcc5fd1fe192752c84c63fa221cb577698f
MD5 10685dc0ecec7eace82499b27403f36e
BLAKE2b-256 d18353d3b6d7575bb5eca7ff85647ff7596fc9b529f1010f4fd1f18f84410535

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