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.8.tar.gz (695.2 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.8-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.8-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.8.tar.gz.

File metadata

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

File hashes

Hashes for pyrin_network-0.1.8.tar.gz
Algorithm Hash digest
SHA256 65110a7b8dd3cdfd05e76f8e5d793f196cf72084dfc935d24ebc7e1b1695c1c8
MD5 145b1252ea1cb62cca5111c3e01fd27f
BLAKE2b-256 a99febf6dbbec3dc873e2acf2b7927e04b0134d8326e80b967c2ab48e40ede47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrin_network-0.1.8-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 45bc7ca36305dc05ad459d605830305c729e804e822e15539aa24419f627e50c
MD5 6d89637c721448c606fb25f5e3d45305
BLAKE2b-256 550d0d646d70a11fd5073e59ac38f104f4f6ec9301b266b62e162fa6342dddee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrin_network-0.1.8-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 aa5258d82344b8012839e9dface5845801122ea476a0692954f55c2c586b9452
MD5 eb3401dafc0754df635c845b9f7e5db1
BLAKE2b-256 df4ad6676baa4c830f82c6112cbf22b9d62140554d28c0528cf4a04bce19ebf1

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