Python Library for VIZ
This library is in alpha state, API unstable
Built on top of python-graphenelib
sudo apt-get install libffi-dev libssl-dev python-devInstall regular version of OpenSSL (not Light) suitable for your core processor.
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 openssland then use the following commands:
export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"Current published version could be installed via
pip install viz-python-libManual installation:
Install poetry
cd viz-python-lib/
poetry installBasic 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()