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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file weave-py-api-1.2.7.tar.gz.

File metadata

  • Download URL: weave-py-api-1.2.7.tar.gz
  • Upload date:
  • Size: 25.9 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.7.tar.gz
Algorithm Hash digest
SHA256 51200d14d06a1203c57461fae7c71033c734aae4927142584c2691e1952598e4
MD5 b9fdc44ac5b197f9ba00fb0e9b570fdf
BLAKE2b-256 cbb091241962f56bfc2dd40f20526bd5dfbc5e885affa851b22c28c6ac75282d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weave_py_api-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for weave_py_api-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a69eb16e83c64b1f49064c375a41370ce6c2ee9cee9abbdf2153df09538321e7
MD5 33234dcaf79f10bc2b251a0fd4c5c4c8
BLAKE2b-256 5f680bf7cee3d9ff2798425a0b4d252967a5e27c613279f64c3851d8f8237833

See more details on using hashes here.

Supported by

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