Weavechain Python API
Project description
Weavechain Python API
https://weavechain.com: Layer-0 For Data
How to install
pip install weave-py-api
Simple read sample
from weaveapi import weaveapi
from weaveapi.records import *
from weaveapi.options import *
from weaveapi.weaveh import *
pub, pvk = generate_keys()
print("Public key: ", pub)
print("Private key:", pvk)
node = "https://public.weavechain.com:443/92f30f0b6be2732cb817c19839b0940c"
organization = "weavedemo"
scope = "shared"
table = "directory"
cfg = weave_client_config(pub, pvk, node, organization)
nodeApi, session = connect_weave_api(cfg)
reply = nodeApi.read(session, scope, table, None, READ_DEFAULT_MUX_NO_CHAIN).get()
print(reply["data"])
Docs
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
weave-py-api-1.2.0.tar.gz
(26.0 kB
view hashes)
Built Distribution
Close
Hashes for weave_py_api-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f341ba64ed5450b39de1718c7d5ecdc02d3de68ec41e2384e2e7e069ed51fb |
|
MD5 | 888f56e05455c1ea4ad0b0f7d11442b9 |
|
BLAKE2b-256 | 27f1219cd8f316f3ac8f18331f847d6ab34a57565437d8dc4aaa422d2d2c4bcd |