create account

[Release] Piston 0.0.1 - Command Line Tool for Steem by xeroc

View this thread on: hive.blogpeakd.comecency.com
· @xeroc ·
$22.40
[Release] Piston 0.0.1 - Command Line Tool for Steem
# 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>"
👍  , , , , , , , , , , , , , , , ,
👎  
properties (23)
authorxeroc
permlinkpiston-0-0-1
categorysteem
json_metadata""
created2016-04-25 15:17:57
last_update2016-04-25 15:17:57
depth0
children5
last_payout2016-08-21 18:12:00
cashout_time1969-12-31 23:59:59
total_payout_value11.202 HBD
curator_payout_value11.200 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,124
author_reputation118,819,064,085,695
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id799
net_rshares14,869,934,888,898
author_curate_reward""
vote details (18)
@bitcube ·
$1.36
Good job!

Is there a way to edit a post?
👍  ,
properties (23)
authorbitcube
permlinkre-xeroc-piston-0-0-1-20160425t160126083z
categorysteem
json_metadata{}
created2016-04-25 16:01:30
last_update2016-04-25 16:01:30
depth1
children2
last_payout2016-08-21 18:12:00
cashout_time1969-12-31 23:59:59
total_payout_value0.678 HBD
curator_payout_value0.679 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length41
author_reputation8,016,881,813,007
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id809
net_rshares2,585,821,854,604
author_curate_reward""
vote details (2)
@pharesim ·
$1.52
Repost it using the same permlink
👍  ,
properties (23)
authorpharesim
permlinkre-bitcube-re-xeroc-piston-0-0-1-20160425t160126083z-20160425t161602555z
categorysteem
json_metadata{}
created2016-04-25 16:16:00
last_update2016-04-25 16:16:00
depth2
children0
last_payout2016-08-21 18:12:00
cashout_time1969-12-31 23:59:59
total_payout_value0.760 HBD
curator_payout_value0.760 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation239,352,620,843,716
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id810
net_rshares2,800,240,790,580
author_curate_reward""
vote details (2)
@xeroc ·
$0.27
re:
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* .. 
👍  
properties (23)
authorxeroc
permlinkre-re-xeroc-piston-0-0-1-20160425t160126083z
categorysteem
json_metadata""
created2016-04-25 17:59:03
last_update2016-04-25 17:59:03
depth2
children0
last_payout2016-08-21 18:12:00
cashout_time1969-12-31 23:59:59
total_payout_value0.134 HBD
curator_payout_value0.134 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length315
author_reputation118,819,064,085,695
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id815
net_rshares716,548,327,384
author_curate_reward""
vote details (1)
@jensm85 ·
In my case it got installed into python2.7 and i dont know how to remove it and make it work in pyton3
properties (22)
authorjensm85
permlinkre-xeroc-piston-0-0-1-20170714t170853816z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-07-14 17:08:51
last_update2017-07-14 17:08:51
depth1
children0
last_payout2017-07-21 17:08:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length102
author_reputation361,567,763,942
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,478,680
net_rshares0
@xeroc ·
$2.29
created by piston
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!

👍  , , , ,
👎  
properties (23)
authorxeroc
permlinkre-piston-0-0-1
categorysteem
json_metadata""
created2016-04-25 15:23:06
last_update2016-04-25 15:23:06
depth1
children0
last_payout2016-08-21 18:12:00
cashout_time1969-12-31 23:59:59
total_payout_value1.146 HBD
curator_payout_value1.146 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length381
author_reputation118,819,064,085,695
root_title"[Release] Piston 0.0.1 - Command Line Tool for Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id800
net_rshares3,722,105,062,722
author_curate_reward""
vote details (6)