Metadata-Version: 2.1
Name: bitcoinrpc
Version: 0.2.2
Summary: Lightweight bitcoin JSON-RPC python async client
Home-page: https://github.com/bibajz/bitcoin-python-async-rpc
Author: Libor Martinek
Author-email: libasmartinek@protonmail.com
License: UNKNOWN
Keywords: bitcoin async json-rpc
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: httpx (==0.12.1)
Requires-Dist: orjson (==2.6.6)

# bitcoin-python-async-rpc
Lightweight Bitcoin async JSON-RPC Python client.

Serves as a tiny layer between an application and a Bitcoin daemon, its primary usage
is querying the current state of Bitcoin blockchain, network stats, transactions...

If you want complete Bitcoin experience in Python, consult
[python-bitcoinlib](https://github.com/petertodd/python-bitcoinlib) .

## Installation
```bash
$ pip install bitcoinrpc
```

## Usage
Minimal illustration (assuming Python 3.8, where you can run `async` code in console)

```bash
$ python -m asyncio
>>> import asyncio
>>>
>>> from bitcoinrpc import BitcoinRPC
>>> rpc = BitcoinRPC("127.0.0.1", 8332, "rpc_user", "rpc_passwd")
>>> await rpc.getconnectioncount()
10
```

