Metadata-Version: 2.3
Name: pyrin-network
Version: 0.1.7
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pytest ; extra == 'tests'
Provides-Extra: tests
Summary: Pyrin SDK for the ecosystem
Keywords: pyrin,pyrin network
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/Pyrinpyi/pyrin/tree/master/sdk/python
Project-URL: Issues, https://github.com/Pyrinpyi/pyrin/issues



#### Pyrin SDK Python Bindings 
[SDK Documentation](https://docs.pyrin.network/7.-sdk/python/getting-started)

Built using [PyO3](https://github.com/PyO3/pyo3)


#### Installation

```bash
pip install pyrin-network
```

#### Running node with wRPC
```bash
pyrin --utxoindex --rpclisten-borsh
```

#### Usage

```python
import pyrin

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

```python
import pyrin

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


#### Local Development

```bash ``

#### Dependencies

```bash
pip install maturin
```

#### Build

```bash
cargo build

maturin build
pip install <compiled whl file>
```

#### Development

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

cd sdk/python
maturin develop
```

```bash
python3 -m venv ~/sdk_develop
source ~/sdk_develop/bin/activate

pip install maturin
python3 -m maturin develop
```

#### Test

```bash
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
```
