Lightweight bitcoin JSON-RPC python async client
Project description
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 .
Installation
$ pip install bitcoinrpc
Usage
Minimal illustration (assuming Python 3.8, where you can run async
code in console)
$ python -m asyncio
>>> import asyncio
>>>
>>> from bitcoinrpc import BitcoinRPC
>>> rpc = BitcoinRPC("127.0.0.1", 8332, "rpc_user", "rpc_passwd")
>>> await rpc.getconnectioncount()
10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitcoinrpc-0.2.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for bitcoinrpc-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a4a278bee7f1f524a55a033d89d035565146b519474d26b94f4e5945a9f454 |
|
MD5 | 7e4bd13919bab93224f387ee0e47ae74 |
|
BLAKE2b-256 | 729ae950aa0ac8fcbfe5000c969bdbb838cc49c8f40959aa46c09134b3bfcfcc |