Skip to main content

Python bindings for subwasm library

Project description


Python bindings for subwasm utility:


Compile for local development

pip install -r requirements.txt
maturin develop

Build wheelhouses

pip install -r requirements.txt

# Build local OS wheelhouse
maturin build


import json
import subwasm

# Show metadata from WASM file
metadata_str = subwasm.get_metadata("runtime_000.wasm")
metadata_json = json.loads(metadata_str)
print(json.dumps(metadata_json, indent=4))

# Show metadata from local Substrate node
metadata_str = subwasm.get_metadata("")
metadata_json = json.loads(metadata_str)
print(json.dumps(metadata_json, indent=4))


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

py_subwasm_bindings-0.0.3.tar.gz (240.2 kB view hashes)

Uploaded source

Built Distributions

Supported by

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