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
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
py_subwasm_bindings-0.0.1.tar.gz
(240.2 kB
view hashes)
Built Distributions
Close
Hashes for py_subwasm_bindings-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9771d073c72354f626a2cb94b97c6aec91775e1822ae3aad7011d4b2aa175137 |
|
MD5 | a464b5fedfead8e7b98587ed50364f28 |
|
BLAKE2b-256 | d7504bd6f9865d13e4aed3b3622a4ba72d92c0103949c6ef0ea929b14da5d11d |
Close
Hashes for py_subwasm_bindings-0.0.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48655a5b4da9751b4e4bd8a8bab0e9ff7c9b6acd14c84b342674b9573680992d |
|
MD5 | 825bb3edaf67a16f528971d4e88c66cc |
|
BLAKE2b-256 | 6b53352118aca533f231ce6cf70239f8b6c01a527fd9ff80e34a445e578f3404 |
Close
Hashes for py_subwasm_bindings-0.0.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f1e7cbda4b774a51dc1160fbc14816e91cf2a6bff576bb81c49ee2c9aa9ebb |
|
MD5 | 2f39baf89b56c07ba9e03b1f7f5f502b |
|
BLAKE2b-256 | 5bc23b8d781246981b2edb037157b98a1a628b08fc91838ae90db18cc92b1b77 |
Close
Hashes for py_subwasm_bindings-0.0.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630cd57a7679dff9aa785874b685a127acc766670c4fbfd69a6174f82fe1303f |
|
MD5 | 46542f35264ca4ed4725422c8238054a |
|
BLAKE2b-256 | 25f18e8b3007d494347f01ba6014f0cc166e133cad6b4350feb6b36c2c234dc8 |
Close
Hashes for py_subwasm_bindings-0.0.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5074710e58c4d0fc5bcc5d6fcf3ab284b9a04ca0f444f17cd7cbfbce9fddaf6a |
|
MD5 | ad46f87ca2edc958019dcbb4b239562c |
|
BLAKE2b-256 | 1881accd1ae81a1e46e0c3d5cef68b8be267a21b06a6b3872761d3f8fad434e3 |