# Python Library for [VIZ](https://github.com/VIZ-Blockchain)
![tests](https://github.com/VIZ-Blockchain/viz-python-lib/workflows/tests/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/viz-python-lib/badge/?version=latest)](https://viz-python-lib.readthedocs.io/en/latest/?badge=latest)
**This library is in alpha state, API unstable**
Built on top of [python-graphenelib](https://github.com/xeroc/python-graphenelib/)
## Dependencies
#### Linux dependencies
```sh
sudo apt-get install libffi-dev libssl-dev python-dev
```
#### Windows dependencies
Install regular version of [OpenSSL](https://slproweb.com/products/Win32OpenSSL.html) (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:
```sh
brew install openssl
```
and then use the following commands
```sh
export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"
```
## Installation
Current published version could be installed via
```sh
pip install viz-python-lib
```
Manual installation:
Install [poetry](https://python-poetry.org/docs/)
```sh
cd viz-python-lib/
poetry install
```
## Usage
Basic read query example:
```python
from viz import Client
from pprint import pprint
node = 'wss://node.viz.cx/ws'
viz = Client(node=node)
pprint(viz.info())
```
Direct RPC calls:
```python
viz.rpc.some_rpc_method()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/VIZ-Blockchain/viz-python-lib",
"name": "viz-python-lib",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "viz,python,library,blockchain",
"author": "Vladimir Kamarzin",
"author_email": "vvk@vvk.pp.ru",
"download_url": "https://files.pythonhosted.org/packages/3d/2b/4120b23bf21ab55558a1a50d2dacbeb6324aef90782a7ea341a355dcdeea/viz_python_lib-1.0.2.tar.gz",
"platform": null,
"description": "# Python Library for [VIZ](https://github.com/VIZ-Blockchain)\n\n![tests](https://github.com/VIZ-Blockchain/viz-python-lib/workflows/tests/badge.svg)\n[![Documentation Status](https://readthedocs.org/projects/viz-python-lib/badge/?version=latest)](https://viz-python-lib.readthedocs.io/en/latest/?badge=latest)\n\n**This library is in alpha state, API unstable**\n\nBuilt on top of [python-graphenelib](https://github.com/xeroc/python-graphenelib/)\n\n## Dependencies\n\n#### Linux dependencies\n\n```sh\nsudo apt-get install libffi-dev libssl-dev python-dev\n```\n\n#### Windows dependencies\n\nInstall regular version of [OpenSSL](https://slproweb.com/products/Win32OpenSSL.html) (not Light) suitable for your core processor.\n\n#### MacOS dependencies\n\nApple 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:\n\n```sh\nbrew install openssl\n```\n\nand then use the following commands\n```sh\nexport CFLAGS=\"-I$(brew --prefix openssl)/include\"\nexport LDFLAGS=\"-L$(brew --prefix openssl)/lib\"\n```\n\n## Installation\n\nCurrent published version could be installed via\n\n```sh\npip install viz-python-lib\n```\n\nManual installation:\n\nInstall [poetry](https://python-poetry.org/docs/)\n\n```sh\ncd viz-python-lib/\npoetry install\n```\n\n## Usage\n\nBasic read query example:\n```python\nfrom viz import Client\nfrom pprint import pprint\n\nnode = 'wss://node.viz.cx/ws'\n\nviz = Client(node=node)\npprint(viz.info())\n```\n\nDirect RPC calls:\n```python\nviz.rpc.some_rpc_method()\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for VIZ blockchain",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/VIZ-Blockchain/viz-python-lib",
"Repository": "https://github.com/VIZ-Blockchain/viz-python-lib"
},
"split_keywords": [
"viz",
"python",
"library",
"blockchain"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bb6b630f71f1e0114a143cc4ee03f76a2670adc9a39a9e01a8f7fcf129c348e7",
"md5": "30770dda1b8d880a57f0f8124c282d97",
"sha256": "73316df893d6f17a075d549c4b3bfa1e0ef6b9564fd9bc982c93e63c0ea046eb"
},
"downloads": -1,
"filename": "viz_python_lib-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "30770dda1b8d880a57f0f8124c282d97",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 37690,
"upload_time": "2024-01-10T08:50:41",
"upload_time_iso_8601": "2024-01-10T08:50:41.660914Z",
"url": "https://files.pythonhosted.org/packages/bb/6b/630f71f1e0114a143cc4ee03f76a2670adc9a39a9e01a8f7fcf129c348e7/viz_python_lib-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3d2b4120b23bf21ab55558a1a50d2dacbeb6324aef90782a7ea341a355dcdeea",
"md5": "9edb96057197d32242ad4cf3f6e33b1b",
"sha256": "af2a7b9d8096295d0302543fbbea26e9483d44527f51bd679cebd0089410be71"
},
"downloads": -1,
"filename": "viz_python_lib-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "9edb96057197d32242ad4cf3f6e33b1b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 30373,
"upload_time": "2024-01-10T08:50:43",
"upload_time_iso_8601": "2024-01-10T08:50:43.354235Z",
"url": "https://files.pythonhosted.org/packages/3d/2b/4120b23bf21ab55558a1a50d2dacbeb6324aef90782a7ea341a355dcdeea/viz_python_lib-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-10 08:50:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "VIZ-Blockchain",
"github_project": "viz-python-lib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "viz-python-lib"
}