2#How to build applications for steemit with Python programming?

in #steemit6 years ago (edited)

Last post I thought we can do something with javascript. But when I saw python client for steem,wanted to do something with python programming on Steemit because I like python more. But we will do something with javascript on steem later.

Piston Command line tool to interface with the STEEM network

https://github.com/xeroc/piston-cli
https://pypi.python.org/pypi/steem-piston/0.2

So we will try to read our post from "piston command"
I hope you got how to install piston-cli in your system. if not see below

If you are using Ubunut linux ,use the below command to install pip3, for windows see link https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation

$sudo apt install python3-pip
$pip3 install piston-cli

Now you can start using the command 'piston' from your command line

In order to read post from command line

$piston read "@naveendavisv/keep-an-eye-on-bitcoin-1-bitcoin-equals-6118-23-us-dollar-oct30th-2017"

You can even import the library and use the functions from piston in your python python program

>>> from piston.steem import Steem
>>>from piston.wallet import Wallet

Read more about piston documentation - http://cli.piston.rocks/en/develop/app.html#quickstart




Coin Marketplace

STEEM 0.24
TRX 0.11
JST 0.031
BTC 60936.15
ETH 2921.43
USDT 1.00
SBD 3.70