Skip to main content

WebAssembly build tool for CPython C/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 supports CPython 3.6 to 3.12.

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 generate.py
python -m pip install .

Usage

Pass the file with any extra arguments to the console scripts:

C

wasmpy-build my_file.c -o my_file.wasm

C++

wasmpy-build-cpp my_file.cpp -o my_file.wasm

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.5.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

wasmpy_build-0.5.2-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file wasmpy_build-0.5.2.tar.gz.

File metadata

  • Download URL: wasmpy_build-0.5.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.17

File hashes

Hashes for wasmpy_build-0.5.2.tar.gz
Algorithm Hash digest
SHA256 5a2e1ca6e93df24d2ddb32e47a9d63f8e3d7279bfc1413753e664465e787b25d
MD5 972b7945b0877b080514f401cd1d4e88
BLAKE2b-256 e3e8462c929ad0c941a9b8f22dddb6c46a90e9a087587556c47dc53829d38b78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wasmpy_build-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.17

File hashes

Hashes for wasmpy_build-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f27ca30932643f8a2aa4405ac6f17adf8852f16f4cf1e25c21b6423120ddc7
MD5 98d0ea28bceb69c87abd98d478ca51fc
BLAKE2b-256 6092545e2daf1017552d2dcfd78821fce3ed866f76483f537795d7d85f94a207

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