Learn Steem-Python #1 - Installation guide

By @abhi370011/26/2017utopian-io

learn_steem-python.jpg

Hi guys!!....

This is a new tutorial series on accessing Steem blockchain using python programming language.

So, this is the first tutorial in which we are going to install the steem-py in our system.

Official guide - https://steem.readthedocs.io/en/latest/

Setup

  • Install 'Git' and get access from command prompt (cmd). Download from here.
    sketch1.png

  • Go to the required drive/directory, where steem-python is to be installed using command prompt (cmd).

## For windows, suppose go to E:\ drive  (cmd is not case-sensitive)
      $ E:

sketch1.png

  • Now, make a clone of the official github repository of "steem-python" using the following command:
      $ git clone https://github.com/steemit/steem-python
  • A folder named "steem-python" is created. Go to the folder using following command in cmd:
      $ cd steem-python
  • Inside this folder, we find a file - "setup.py". Install it using python command as follows:
      $ python setup.py install

Hence, The tool is installed successfully!!...

Coding

Now, let's check if it is working.
For this, we follow some basic examples from here

sketch1.png

# first, we initialize Steem class
from steem import Steem
s = Steem()


# check @ned's balance
>>> s.get_account('ned')['sbd_balance']
'980.211 SBD'

So, it's working fine!!....

That's all.

Stay tuned for more tutorials in this series.

Follow in Github



Posted on Utopian.io - Rewarding Open Source Contributors

20

comments