Skip to main content

Run WebAssembly Binary and Text files in the command line.

Project description

WASM CLI Runner

Run WebAssembly Binary or Text files (.wat or .wasm) directly from the command line.

Imported functions to WebAssembly are at the moment:

  • "print" ((import "" "print" (func $print (param i32))))

To run a WebAssembly file, use:

wasm_cli_runner test.wat

Installation

Via pip

pip install wasm_cli_runner

From source

To run this program from the code directly, python and poetry (pip install poetry) are required. Clone or download the repository.

To install all the dependencies, use your command line and navigate to the directory where this README file is located in. Then run

poetry install

Execution

To execute the program use

poetry run python -m wasm_cli_runner

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

wasm_cli_runner-1.0.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

wasm_cli_runner-1.0.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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