Skip to main content

Python library for VIZ blockchain

Project description

Python Library for VIZ

tests Documentation Status

This library is in alpha state, API unstable

Built on top of python-graphenelib

Dependencies

Linux dependencies

sudo apt-get install libffi-dev libssl-dev python-dev

Windows dependencies

Install regular version of OpenSSL (not Light) suitable for your core processor.

MacOS dependencies

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries. This means that you will need to install and export some OpenSSL settings yourself, before you can install viz-python-lib:

brew install openssl

and then use the following commands

export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"

Installation

Current published version could be installed via

pip install viz-python-lib

Manual installation:

Install poetry

cd viz-python-lib/
poetry install

Usage

Basic read query example:

from viz import Client
from pprint import pprint

node = 'wss://node.viz.cx/ws'

viz = Client(node=node)
pprint(viz.info())

Direct RPC calls:

viz.rpc.some_rpc_method()

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

viz_python_lib-1.0.0.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

viz_python_lib-1.0.0-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file viz_python_lib-1.0.0.tar.gz.

File metadata

  • Download URL: viz_python_lib-1.0.0.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for viz_python_lib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9df32acffa6c8259c5bcd7f3f72055e55a5b1140dea4ab76def5a8762494050d
MD5 059af917f2d5bf7205e14e2cec88a25d
BLAKE2b-256 a9809acd9b4d57281316b629a7783da2b3d0615ad82224e51a4b841e12b19c70

See more details on using hashes here.

File details

Details for the file viz_python_lib-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: viz_python_lib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for viz_python_lib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3450b3250c1b5d723b68ae0d0228356eb54eca2043638b750bfe149857fdfdb3
MD5 a031921b8be0515c2323e68fec0b942f
BLAKE2b-256 b12bc2cb947c5f899670b68baede0ec75e1a6ec5b6836868938bffe9187d48dd

See more details on using hashes here.

Supported by

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