Pyrin SDK for the ecosystem
Project description
Pyrin SDK Python Bindings
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrin_network-0.1.6-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pyrin_network-0.1.6-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbe6fa1307e5d4b09bce7b477c78d578c68a2dfbbc5a4e14dffa31350c13e827
|
|
| MD5 |
98d8f98def9a34d261620b7517e9e5be
|
|
| BLAKE2b-256 |
9a0cd965bae3f5671a20dd00a9fe19d75dfdce9eb884b2d843659008cde27efd
|