Skip to main content

Pyodide-backed wasmsh runtime assets for Python integrations

Project description

wasmsh-pyodide-runtime

Packaged Pyodide-backed wasmsh runtime assets for Python integrations.

This package bundles the custom Pyodide distribution and Node host script produced by the wasmsh build, and exposes stable helpers to locate them at runtime. It is the Python-side companion to the wasmsh-pyodide npm package.

Install

pip install wasmsh-pyodide-runtime

Usage

from wasmsh_pyodide_runtime import get_dist_dir, get_asset_path, get_node_host_script

# Path to the packaged Pyodide distribution directory
dist = get_dist_dir()

# Path to a specific asset (e.g., the WASM binary)
wasm = get_asset_path("pyodide.asm.wasm")

# Path to the Node host script (used by langchain-wasmsh)
host = get_node_host_script()

Reference

get_dist_dir() -> Path

Returns the directory containing the packaged Pyodide assets (pyodide.asm.js, pyodide.asm.wasm, python_stdlib.zip, etc.).

get_asset_path(name: str) -> Path

Returns the path to a specific asset file within the distribution directory.

get_node_host_script() -> Path

Returns the path to the packaged node-host.mjs script. This is the entrypoint that langchain-wasmsh launches as a Deno or Node.js subprocess to host the Pyodide/Emscripten runtime.

Explanation

This package exists so that Python consumers (like langchain-wasmsh) can depend on a single PyPI package to get the wasmsh runtime assets, without needing to install npm or run a build. The assets are identical to those in the wasmsh-pyodide npm package — the tools/pyodide/package-runtime-assets.mjs script copies them into both package layouts from the same build output.

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

wasmsh_pyodide_runtime-0.6.1.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

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

wasmsh_pyodide_runtime-0.6.1-py3-none-any.whl (8.4 MB view details)

Uploaded Python 3

File details

Details for the file wasmsh_pyodide_runtime-0.6.1.tar.gz.

File metadata

  • Download URL: wasmsh_pyodide_runtime-0.6.1.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wasmsh_pyodide_runtime-0.6.1.tar.gz
Algorithm Hash digest
SHA256 dc1cafac87f44785f693d83cad9f1cc606ba09e18e12a3afc9a73c0dbb4b751a
MD5 99b2a89d90b893966811b2f998b442b7
BLAKE2b-256 659b4b21635c8d4b87713060a0b5eae97277630158ef9ef5f96c2ff4de5d4d7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wasmsh_pyodide_runtime-0.6.1.tar.gz:

Publisher: release.yml on mayflower/wasmsh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wasmsh_pyodide_runtime-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wasmsh_pyodide_runtime-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39c27cc8669b42e882e10ba5fc0144dbdb7415e953a837f8ed4646a2e568fe2d
MD5 102a2bd543c4983c863f019a75828209
BLAKE2b-256 34ab26134f298daac93f7e4aaf7396de4a1cf2b185e84fe161f696c4fe2a09bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for wasmsh_pyodide_runtime-0.6.1-py3-none-any.whl:

Publisher: release.yml on mayflower/wasmsh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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