Skip to main content

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

https://docs.weavechain.com

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.6.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

weave_py_api-1.2.6-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file weave_py_api-1.2.6.tar.gz.

File metadata

  • Download URL: weave_py_api-1.2.6.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for weave_py_api-1.2.6.tar.gz
Algorithm Hash digest
SHA256 58a7dfa18b9088f169473f3c9a84c2994b303b912897851a371abab03e51b67b
MD5 e108a706cec9c913f87499cc7bddf06d
BLAKE2b-256 4a2249c32e571da07d6973c109b243ada6ee4f9fa8fa5181e960991a22fcf056

See more details on using hashes here.

File details

Details for the file weave_py_api-1.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for weave_py_api-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 43e33d210b9186396c4fa8aea84eea1e8b97b95c58adefedead0e2c3c926d1cb
MD5 87610bf855887dfd136a2558285b491a
BLAKE2b-256 3402171c0ebd2a121c65f1e649f03e3a034c7b855dbf479264bf773a76b15135

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page