Skip to main content

Library to communicate with peercoin daemon via JSON-RPC protocol.

Project description

peercoin_rpc

License: MIT PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peercoin_rpc-0.60.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

peercoin_rpc-0.60-py3.6.egg (9.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page