[Release 0.1.0] python-peerplayssteemCreated with Sketch.

in peerplays •  8 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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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!

Congratulations @chainsquad!
Your post was mentioned in my hit parade in the following category:

  • Pending payout - Ranked 9 with $ 1021,22

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!!!

Great!

Thank you for your contribution to this platform!

#steemboost

We almost there ) Nice work!!

Thank you!

Good post my friend... I like it, thanks for sharing this blog.

I have one post, Help me to steemit

https://steemit.com/introducemyself/@alga/hi-steemit-community-help-me-welcome-to-all-steemians-201767t201148364z

Thanks for your info.nice to be part of your community

good job.You're great。

thanx for sharing this vaulable information about peerplays

Good effort dear @chainsquad.

Great work!

nice work, thank you for sharing!

Nice work, thanks!

Do you know of any (basic) examples of how to get started using this?

I can highly recommend to look into the code for the command line tool over here:

https://github.com/PBSA/python-peerplays/tree/master/peerplays/cli

Also, since it are a couple examples on python.peerplays.com

I have read your blog.
Amazing post brother, good luck.

Help me to share this blog.
https://steemit.com/history/@joe28/study-history-of-aceh-sumatra-read-this-blog-if-you-want-to-know-about-aceh

very nice post...

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 :)

so nice work

  ·  8 years ago Reveal Comment