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-sr25519-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.

Files for py-subwasm-bindings, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size py_subwasm_bindings-0.0.1-cp36-cp36m-macosx_10_7_x86_64.whl (3.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size py_subwasm_bindings-0.0.1-cp37-cp37m-macosx_10_7_x86_64.whl (3.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size py_subwasm_bindings-0.0.1-cp38-cp38-macosx_10_7_x86_64.whl (3.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size py_subwasm_bindings-0.0.1-cp39-cp39-macosx_10_7_x86_64.whl (3.5 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size py_subwasm_bindings-0.0.1.tar.gz (240.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page