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 Node.js child process 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wasmsh_pyodide_runtime-0.3.0.tar.gz.
File metadata
- Download URL: wasmsh_pyodide_runtime-0.3.0.tar.gz
- Upload date:
- Size: 5.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7926d2b542d6cb3feb132f85baff11c2d5183ff430e8f7f7d9d3b5a59e5c615
|
|
| MD5 |
e45a22cfe05792a8c8fa020982e7a43b
|
|
| BLAKE2b-256 |
427deee36fe76eccb382d6b133588917cc66428129c4345c7f68d2c475fbc539
|
Provenance
The following attestation bundles were made for wasmsh_pyodide_runtime-0.3.0.tar.gz:
Publisher:
release.yml on mayflower/wasmsh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wasmsh_pyodide_runtime-0.3.0.tar.gz -
Subject digest:
b7926d2b542d6cb3feb132f85baff11c2d5183ff430e8f7f7d9d3b5a59e5c615 - Sigstore transparency entry: 1197589368
- Sigstore integration time:
-
Permalink:
mayflower/wasmsh@c900499a5bf5b2207180058631fb328fc7609d5f -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/mayflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c900499a5bf5b2207180058631fb328fc7609d5f -
Trigger Event:
push
-
Statement type:
File details
Details for the file wasmsh_pyodide_runtime-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wasmsh_pyodide_runtime-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e93815f4640419d72bb6be1a1c4b8d76592de9024b3b94ede6ebbb86b8aea5d
|
|
| MD5 |
fd8035dd0583e032a0b894366a65e95e
|
|
| BLAKE2b-256 |
cabc14a1f39377873d61295bc0942f8b11aefa19a75fa2e2333739e0c20e17dc
|
Provenance
The following attestation bundles were made for wasmsh_pyodide_runtime-0.3.0-py3-none-any.whl:
Publisher:
release.yml on mayflower/wasmsh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wasmsh_pyodide_runtime-0.3.0-py3-none-any.whl -
Subject digest:
5e93815f4640419d72bb6be1a1c4b8d76592de9024b3b94ede6ebbb86b8aea5d - Sigstore transparency entry: 1197589442
- Sigstore integration time:
-
Permalink:
mayflower/wasmsh@c900499a5bf5b2207180058631fb328fc7609d5f -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/mayflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c900499a5bf5b2207180058631fb328fc7609d5f -
Trigger Event:
push
-
Statement type: