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.1.tar.gz (365.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wasmpy-build-0.1.1.tar.gz
  • Upload date:
  • Size: 365.7 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.1.tar.gz
Algorithm Hash digest
SHA256 1fa5d26d13c3a8ad5e6d448b00a467a81c5e6c371508db4aeb75f42e1c959c41
MD5 8f6b45ead11f480539b241791f7a926f
BLAKE2b-256 23da3717c3a5f7173a2e5875bfac06a6ec9cc60314a4eefedd20fa5bfa537202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wasmpy_build-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71ecba146754276198a2e810c72dc48932130b913b3649c0888ecca5d484d2c0
MD5 d21cb73e38c829be7ce29ce82bc9da4a
BLAKE2b-256 681d2112e535bfb468c62de14dbd276c7137237305430309689ee347a3dcf21d

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