Skip to content

VIZ-Blockchain/viz-python-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f6c776 · Feb 2, 2024
Nov 24, 2023
Jun 14, 2020
Jan 10, 2024
Jan 10, 2024
Jun 14, 2020
Sep 20, 2023
May 10, 2020
May 10, 2020
Nov 9, 2023
Jun 10, 2020
May 18, 2020
Jan 10, 2024
Mar 7, 2019
Nov 9, 2023
Jan 10, 2024
Feb 2, 2024
Jan 10, 2024
Nov 21, 2023

Repository files navigation

Python Library for VIZ

Tests Status 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()