Weavechain Python API
Project description
Weavechain Python API
https://weavechain.com: Layer-0 For Data
How to install
pip install weave-py-api
Data 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_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.3.tar.gz
(26.3 kB
view hashes)
Built Distribution
Close
Hashes for weave_py_api-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 703e1f74f48db9871558a3bb7c620ddc451975de1b2fc8a8ca397a0f7c6e0037 |
|
MD5 | f04eb32f2978fb1bff9f9633db08c59c |
|
BLAKE2b-256 | f1d5bd31256fbfa50c3d871275ee5f128ab11d70fc89ffe3b35bebcd81d63b9e |