Python library for VIZ blockchain
Project description
Python Library for VIZ
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
Built Distribution
File details
Details for the file viz_python_lib-1.0.2.tar.gz
.
File metadata
- Download URL: viz_python_lib-1.0.2.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af2a7b9d8096295d0302543fbbea26e9483d44527f51bd679cebd0089410be71 |
|
MD5 | 9edb96057197d32242ad4cf3f6e33b1b |
|
BLAKE2b-256 | 3d2b4120b23bf21ab55558a1a50d2dacbeb6324aef90782a7ea341a355dcdeea |
File details
Details for the file viz_python_lib-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: viz_python_lib-1.0.2-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73316df893d6f17a075d549c4b3bfa1e0ef6b9564fd9bc982c93e63c0ea046eb |
|
MD5 | 30770dda1b8d880a57f0f8124c282d97 |
|
BLAKE2b-256 | bb6b630f71f1e0114a143cc4ee03f76a2670adc9a39a9e01a8f7fcf129c348e7 |