Library to communicate with peercoin daemon via JSON-RPC protocol.
Project description
peercoin_rpc
Peercoin_rpc is a simple and minimal library made for communication with peercoind
via JSON-RPC protocol.
It has a single dependency - a Python requests
library and it supports both mainnet and testnet peercoin network with authentication or SSL encryption.
There is a single class to be imported from the library - Client
.
Client
class methods are named the same as ppcoind
RPC methods so learning curve is non-existant.
Install
pip install git+git://github.com/peercoin/peercoin_rpc.git
or
pip install peercoin_rpc
How to use
from peercoin_rpc import Client
Spawn a new Client object with desired arguments:
ppcnode = Client(testnet=True, username="username", password="password", ip=, port=)
Use it:
ppcnode.getinfo()
ppcnode.getpeerinfo()
ppcnode.getbalance()
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
File details
Details for the file peercoin_rpc-0.61.tar.gz
.
File metadata
- Download URL: peercoin_rpc-0.61.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d26d0bf04da570b6c2916471fe6271678621849c3e01dab1a0b5b54ca4ba5fe |
|
MD5 | 15d9203ff75131930b36cb13d1cdc0d3 |
|
BLAKE2b-256 | 060874f0df2b4953230f18d96956c7dbb13f5bb97c9cf29121a3706df0b3dbdb |