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

Uploaded Source

Built Distribution

viz_python_lib-1.0.1-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for viz_python_lib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 84e61d1051e9cb61ead26b5c4d6df46dda9f99695aa1027951603dc32408c1dc
MD5 0b2980f3a6f42dcc71052a8abf02527d
BLAKE2b-256 32d7ac3d0df001b278400213a4160b708570f2cca991ef47565cce7d225cdb77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viz_python_lib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b8386b60557a356851be3a4062028c5cf2c2549fe7c8140403e089f6200f198
MD5 b0f9695ad896a7030e120bc313eba3d8
BLAKE2b-256 b74ec6f7f5b54a1fc8794239d3cbff85573a2598a1ee72af9d352474ae1bd18d

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