3#How to check modules and Classes available in Piston API for steemit

in #steemit-dev7 years ago (edited)

Explore more on piston and pistonapi modules to learn and development applications or bot for steemit.

You might find difficult to see online documentation for piston module. Don't worry. You can explore it yourself. From python interpretor itself you can get enough documentation for all piston api . You can easily get details of this by using below python functions.

#get list of attributes for pistonapi
>>> import pistonapi
>>>dir(pistonapi)
['SteemClient', 'SteemNodeRPC', 'SteemWalletRPC', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'exceptions', 'steemclient', 'steemnoderpc', 'steemwalletrpc']

dir(pistonapi) list lot things in this how to identify what are all the modules.

>>>type(pistonapi.steemclient)
<class 'module'>
#From the above we can understand its a module

If you want to know the methods available in this module, you can use below function.

>>>help(pistonapi.steemnoderpc)

In order to understand the examples for any method and specific details of a method

>>>help(pistonapi.steemnoderpc.SteemNodeRPC)





Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 57859.61
ETH 2966.06
USDT 1.00
SBD 3.67