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.7.tar.gz (695.0 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.7-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.7-cp38-none-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for pyrin_network-0.1.7.tar.gz
Algorithm Hash digest
SHA256 9133d238da2f7746355cef7537a70dd3a82a0a0565ccd6e59aa2f66208c11ccf
MD5 335982fcdf87f56633fba5be13c06d12
BLAKE2b-256 3db6f4cce8c5cdca2cbdfb000ccfb8d551b64e658c8e299e87865ced2299973c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrin_network-0.1.7-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 524b6cfcdf9393fe3628febcefd74d53b3a2b2afd58135d4c9108c61870ebad7
MD5 95612fb0e167fd016bead6d0df85e463
BLAKE2b-256 0770f40eaf000f4c2ba0f983bee4dd5714129f5209d12f728d40047efb6cbdc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrin_network-0.1.7-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 b6d1910f8b44b4cd9032821d0690ca2480c377b6a473cf24369698d85a68282b
MD5 94d4406304b8eab8639c59036d270c54
BLAKE2b-256 92057664e54fd42ad178c27d6f9ad0b84b9b3f47a43169f3a214704f2b9a03a1

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