[Release 0.1.0] python-peerplayssteemCreated with Sketch.

in #peerplays8 years ago (edited)

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.

Sort:  

Thanks.

Great work!
Upvoted and followed you.

Resteemed and upvoted!

I'm running into a weird issue where it claims python-click isn't installed, but I've verified that it is and it's current :-/. But like you were saying, work in progress!

make sure to use python3 and have python-click installed into python3

@xeroc Hey I sent the .0001 SBD as directed for reg. on the Steemian Forum but it is still asking for it -
Please send
Amount
0.001 SBD
Account
streemian

  • Can you take a LQQK and let me know the status please / thanks!

Congratulations @chainsquad! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of posts published

Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Good job . It reminds me that I firstly use Python to finish my FInal year project , and it is still a nightmare for me:(

This is so important for those who work with python. Keep up the good work!!!

I apologize if this message is in the wrong place. I need to contact streemian support for help with my sign up. Appreciate any help :)

Thank you for your contribution to this platform!

#steemboost

We almost there ) Nice work!!

Coin Marketplace

STEEM 0.20
TRX 0.25
JST 0.038
BTC 97445.74
ETH 3477.06
USDT 1.00
SBD 3.16