Skip to main content

Python bindings for subwasm library

Project description

py-subwasm-bindings

Python bindings for subwasm utility: https://gitlab.com/chevdor/subwasm

Installation

Compile for local development

pip install -r requirements.txt
maturin develop

Build wheelhouses

pip install -r requirements.txt

# Build local OS wheelhouse
maturin build

Usage

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("http://127.0.0.1:9933")
metadata_json = json.loads(metadata_str)
print(json.dumps(metadata_json, indent=4))

License

https://github.com/polkascan/py-subwasm-bindings/blob/master/LICENSE

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 Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page