# Piston for Steem A command line tool to interface with the Steem network. ## Installation ### Install with `pip`: ``` pip3 install steem-piston ``` ### Manual installation: ``` git clone https://github.com/xeroc/piston cd piston python3 setup.py install --user ``` ### Upgrade ``` $ pip install --user --upgrade steem-piston ``` ## Usage ### Adding keys (for posting) Piston comes with its own encrypted wallet to which keys need to be added: piston addkey <posting-wif-key> On first run, you will be asked to provide a new passphrase that you will need to provide every time you want to post on the Steem network. If you chose an *empty* password, your keys will be stored in plain text which allows automated posting but exposes your private key to your local user. ### List available Keys and accounts piston listkeys This command will give the list of public keys to which the private keys are available. piston listaccounts This command tries to resolve the public keys into account names registered on the network (experimental). ### Posting To post new content, you need to provide * the author, * a permlink, and * a title For posting the "posting-key" of the author needs to be added to the wallet. Additionally, a `--category` can be added as well. echo "Texts" | piston.py post --author "<author>" --category "<category>" --title "<posttitle>" --permlink "<permlink>" cat filename | piston.py post --author "<author>" --category "<category>" --title "<posttitle>" --permlink "<permlink>" ### Replying Here, the same parameters as for simply posting new content are available except that instead of `--category` a `--replyto` has to be provided to identify the post that you want the reply to be posted to. The `--replyto` parameter takes the following form: @author/permlink E.g: echo "Texts" | piston.py post --replyto "@xeroc/python-steem-0.1.1" --author "<author>" --title "<posttitle>" --permlink "<permlink>" cat filename | piston.py post --replyto "@xeroc/python-steem-0.1.1" --author "<author>" --title "<posttitle>" --permlink "<permlink>"
author | xeroc |
---|---|
permlink | piston-0-0-1 |
category | steem |
json_metadata | "" |
created | 2016-04-25 15:17:57 |
last_update | 2016-04-25 15:17:57 |
depth | 0 |
children | 5 |
last_payout | 2016-08-21 18:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 11.202 HBD |
curator_payout_value | 11.200 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,124 |
author_reputation | 118,819,064,085,695 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 799 |
net_rshares | 14,869,934,888,898 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fminerten | 0 | 2,603,246,000,000 | 100% | ||
fminerten1 | 0 | 39,307,000,000 | 100% | ||
steempty | 0 | 2,635,125,000,000 | 100% | ||
xeldal | 0 | 210,422,000,000 | 100% | ||
pharesim | 0 | 2,635,422,000,000 | 100% | ||
enki | 0 | 5,068,237,000,000 | 100% | ||
justin | 0 | 731,476,417,538 | 100% | ||
roadscape | 0 | 562,345,648,878 | 100% | ||
jabbasteem | 0 | 216,492,790,580 | 100% | ||
xeroc | 0 | -15,642,000,000 | -1% | ||
au1nethyb1 | 0 | 155,897,000,000 | 100% | ||
rnglab | 0 | 15,522,797,453 | 100% | ||
markopaasila | 0 | 7,845,194,000 | 100% | ||
algo-rythm | 0 | 66,327,726 | 100% | ||
murh | 0 | 1,811,326,499 | 33.01% | ||
christoryan | 0 | 2,073,854,604 | 100% | ||
inertia | 0 | 230,591,597 | 100% | ||
metasintactic | 0 | 55,940,023 | 100% |
Good job! Is there a way to edit a post?
author | bitcube |
---|---|
permlink | re-xeroc-piston-0-0-1-20160425t160126083z |
category | steem |
json_metadata | {} |
created | 2016-04-25 16:01:30 |
last_update | 2016-04-25 16:01:30 |
depth | 1 |
children | 2 |
last_payout | 2016-08-21 18:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.678 HBD |
curator_payout_value | 0.679 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 41 |
author_reputation | 8,016,881,813,007 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 809 |
net_rshares | 2,585,821,854,604 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 2,583,748,000,000 | 100% | ||
christoryan | 0 | 2,073,854,604 | 100% |
Repost it using the same permlink
author | pharesim |
---|---|
permlink | re-bitcube-re-xeroc-piston-0-0-1-20160425t160126083z-20160425t161602555z |
category | steem |
json_metadata | {} |
created | 2016-04-25 16:16:00 |
last_update | 2016-04-25 16:16:00 |
depth | 2 |
children | 0 |
last_payout | 2016-08-21 18:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.760 HBD |
curator_payout_value | 0.760 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 33 |
author_reputation | 239,352,620,843,716 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 810 |
net_rshares | 2,800,240,790,580 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 2,583,748,000,000 | 100% | ||
jabbasteem | 0 | 216,492,790,580 | 100% |
You can always upload a new version which will make you loose your votes. Besides that, I read about a way to update posts by sending a *patch* as a comment. Need to first look into the format and can then add another call for editing posts with your favorit editor :) Next thing to do though is to add *voting* ..
author | xeroc |
---|---|
permlink | re-re-xeroc-piston-0-0-1-20160425t160126083z |
category | steem |
json_metadata | "" |
created | 2016-04-25 17:59:03 |
last_update | 2016-04-25 17:59:03 |
depth | 2 |
children | 0 |
last_payout | 2016-08-21 18:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.134 HBD |
curator_payout_value | 0.134 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 315 |
author_reputation | 118,819,064,085,695 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 815 |
net_rshares | 716,548,327,384 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
justin | 0 | 716,548,327,384 | 100% |
In my case it got installed into python2.7 and i dont know how to remove it and make it work in pyton3
author | jensm85 |
---|---|
permlink | re-xeroc-piston-0-0-1-20170714t170853816z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2017-07-14 17:08:51 |
last_update | 2017-07-14 17:08:51 |
depth | 1 |
children | 0 |
last_payout | 2017-07-21 17:08:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 102 |
author_reputation | 361,567,763,942 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,478,680 |
net_rshares | 0 |
The OP has been created by the following command cat README.md | piston post --author xeroc --permlink "piston-0-0-1" --category steem --title "[Release] Piston 0.0.1 - Command Line Tool for Steem" while this reply has been created by: piston reply --replyto "@xeroc/piston-0-0-1" --author xeroc --permlink "re-piston-0-0-1" --title "created by piston" Now, have fun!
author | xeroc |
---|---|
permlink | re-piston-0-0-1 |
category | steem |
json_metadata | "" |
created | 2016-04-25 15:23:06 |
last_update | 2016-04-25 15:23:06 |
depth | 1 |
children | 0 |
last_payout | 2016-08-21 18:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.146 HBD |
curator_payout_value | 1.146 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 381 |
author_reputation | 118,819,064,085,695 |
root_title | "[Release] Piston 0.0.1 - Command Line Tool for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 800 |
net_rshares | 3,722,105,062,722 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xeldal | 0 | 203,956,000,000 | 100% | ||
pharesim | 0 | 2,583,748,000,000 | 100% | ||
justin | 0 | 731,476,417,538 | 100% | ||
jabbasteem | 0 | 216,492,790,580 | 100% | ||
xeroc | 0 | -15,642,000,000 | -1% | ||
christoryan | 0 | 2,073,854,604 | 100% |