[Release 0.1.0] python-peerplays

It's my pleasure to present to you the python-peerplays library!

The sources can be found in the PBSA github repository: https://github.com/PBSA/python-peerplays
Documentation is available on: http://python.peerplays.com

Those that are familiar with piston-lib or pybitshares will find that it works the same way and is very similar to the other libraries, except that this time, it is built for peerplays.

Installation

pip3 install peerplays   [--user]

or

git clone https://github.com/pbsa/python-peerplays
python3 python-peerplays/setup.py install --user

Command line tool

Similar to piston and uptick, peerplays comes with it's own command line tool that is installed together with the library right away. You can use it with

peerplays --help

To add your private keys, you can use

peerplays addkey

Current command line features:

$ peerplays --help
Usage: peerplays [OPTIONS] COMMAND [ARGS]...

Options:
  --debug / --no-debug            Enable/Disable Debugging (no-broadcasting
                                  mode)
  --node TEXT                     Websocket URL for public Peerplays API
                                  (default: "wss://t.b.d./")
  --rpcuser TEXT                  Websocket user if authentication is required
  --rpcpassword TEXT              Websocket password if authentication is
                                  required
  -d, --nobroadcast / --broadcast
                                  Do not broadcast anything
  -x, --unsigned / --signed       Do not try to sign the transaction
  -e, --expires INTEGER           Expiration time in seconds (defaults to 30)
  -v, --verbose INTEGER           Verbosity (0-15)
  --version                       Show version
  --help                          Show this message and exit.

Commands:
  addkey                  Add a private key to the wallet
  allow                   Add a key/account to an account's permission
  approvecommittee        Approve committee member(s)
  approveproposal         Approve a proposal
  approvewitness          Approve witness(es)
  balance                 Show Account balances
  broadcast               Broadcast a json-formatted transaction
  changewalletpassphrase  Change the wallet passphrase
  configuration           Show configuration variables
  delkey                  Delete a private key from the wallet
  disallow                Remove a key/account from an account's...
  disapprovecommittee     Disapprove committee member(s)
  disapproveproposal      Disapprove a proposal
  disapprovewitness       Disapprove witness(es)
  getkey                  Obtain private key in WIF format
  history                 Show history of an account
  info                    Obtain all kinds of information
  listaccounts            List accounts (for the connected network)
  listkeys                List all keys (for all networks)
  newaccount              Create a new account
  permissions             Show permissions of an account
  randomwif               Obtain a random private/public key pair
  set                     Set configuration key/value pair
  sign                    Sign a json-formatted transaction
  transfer                Transfer assets
  upgrade                 Upgrade Account

Lack of public API servers

Due to current lack of public API servers, you will need to first point your library to an existing API:

peerplays set node ws://HOST:PORT

Notice

Please keep in mind that there is coding still in progress and you might encouter bugs here and there. For that reasons, the library carries the version number 0.1.x :)
Also I would like to let you know that the library supports features that are not yet part of the public blockchain but will be hard forked into it at a later point in time (when they are ready).

Now, get back to coding and have fun.

H2
H3
H4
3 columns
2 columns
1 column
28 Comments