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

Uploaded Source

Built Distribution

wasmpy_build-0.1.0-py3-none-any.whl (474.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wasmpy-build-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0b4fd5eeeb8c9ff761534239e4b0ee77c7e776ee3474bb279ac0e316120f13d3
MD5 9e97fbcbef9299a50f1083c39a09be73
BLAKE2b-256 fe34df9f1f1cef53bc43149ade9aaf894dd6617aace9041b81a505a8b9e07883

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wasmpy_build-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 474.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7252c255ef4ea58209cdacbcd9625a729a4179d934f3bc33fde793c167890a6e
MD5 d20464438861711ce63d81d557c3809e
BLAKE2b-256 5967470c1af4bfe83dcfd9cdec49390450579c0a1989ed6b6dac2a5c0582da68

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