Skip to main content

Interactions between WebAssembly and Python

Project description

WasmPy

Interacting with WebAssembly code from python.

Installing

Install the latest version:

$ python -m pip install wasmpy

Or build and install from source:

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

Usage

WasmPy defines import hooks to make the loading of WebAssembly binary files much easier! Just import the WasmPy library then you are good to go!

Example:

If you have the following project setup:

|- my_wasm_file.wasm
|- main.py

Then in main.py the following code will load the WebAssembly file:

import wasmpy
import my_wasm_file

The hook also allows importing the files from submodules, eg:

|- main.py
|- my_module
|  |- my_wasm_file.wasm

Then

import wasmpy
from my_module import my_wasm_file

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-0.1.0a2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wasmpy-0.1.0a2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wasmpy-0.1.0a2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for wasmpy-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 ccd215752a891515beb99c780b78d6d953e7994bdea7904dc8bb9bedcb9fb853
MD5 047b43934d02205166c2ecabfd890544
BLAKE2b-256 b8dbb0f83372bfcda163a0097ab6db8077adee36f991e08f6010943f48775122

See more details on using hashes here.

File details

Details for the file wasmpy-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: wasmpy-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for wasmpy-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4951bc2b40efeb46e13351a6e433298ae052b1ad6383198748f845f004a879
MD5 1c8d7109eb1c4844939dbe2978fe8830
BLAKE2b-256 ccf9b7f14c8061a0c2a4db05cf83fe9f8d549dd5118cbbc3bd5ac3f9099c5b03

See more details on using hashes here.

Supported by

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