Skip to main content

Pyrin SDK for the ecosystem

Project description

Pyrin SDK Python Bindings

SDK Documentation

Built using PyO3

Installation

pip install pyrin-network

Running node with wRPC

pyrin --utxoindex --rpclisten-borsh

Usage

import pyrin

rpc = pyrin.RPC()
await rpc.connect()
balance = await rpc.get_balance_by_address("pyrin:qzn54t6vpasykvudztupcpwn2gelxf8y9p84szksr73me39mzf69uaalnymtx")
print("balance:", balance)
import pyrin

wallet = pyrin.Wallet()
r = await wallet.connect()
account = await wallet.create_account()

Local Development

```bash ``

Dependencies

pip install maturin

Build

cargo build

maturin build
pip install <compiled whl file>

Development

conda create -n sdk-develop python=3.8
conda activate sdk-develop

cd sdk/python
maturin develop
python3 -m venv ~/sdk_develop
source ~/sdk_develop/bin/activate

pip install maturin
python3 -m maturin develop

Test

python -m unittest tests/test_wallet.py
python -m unittest tests/test_bip32.py
python -m unittest tests/test_rpc.py
python -m unittest tests/test_lib.py

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

pyrin_network-0.1.9.tar.gz (695.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrin_network-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pyrin_network-0.1.9-cp38-none-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file pyrin_network-0.1.9.tar.gz.

File metadata

  • Download URL: pyrin_network-0.1.9.tar.gz
  • Upload date:
  • Size: 695.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for pyrin_network-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0c7b54af180ebf035bda651ec9ea1ecb0598db1b81362ccc7a7700778f179e19
MD5 fad2eeafebed92f5b1a87efe482006a7
BLAKE2b-256 e1d67cba7edb61ef2f5797162644bad4fd9e3bf48bb5251040cd28f3fd290feb

See more details on using hashes here.

File details

Details for the file pyrin_network-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyrin_network-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 73e1a4ce77a9d91a929cab007d07a20294df071f9f1125f85dd6e5fe4c016aeb
MD5 72fe06abbb097cfa82bab2a8745ab163
BLAKE2b-256 98a419c4834de3ba8d665a5b99b8b28fb283eef14b6bb7320a7676a4ff9e2ac1

See more details on using hashes here.

File details

Details for the file pyrin_network-0.1.9-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyrin_network-0.1.9-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 0d89eaeae4fc37f59249a24d0ecb21440f80a79f8d90ce281cf3d1fd391c0c24
MD5 dd74802091e804cd1ae7a4b92dc85dd5
BLAKE2b-256 db79cdfe59898c3360574f3cdb75367f75db6cd7d63db463017e500c1a8f665d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page