 --- Hello, steemians. This is a new tutorial series on accessing Steem blockchain using python programming language. ### Repository - https://github.com/steemit/steem-python ### Requirements - Python ### Difficulty - Basic ### Tutorial Contents - You will learn how to install the official steem-py to your windows and use it via CMD(command line) ### Curriculum - [SteemPY Tutorials #1](https://steempeak.com/utopian-io/@lonelywolf/steempy-tutorials-1-installation-and-basics) #### The Tutorial Import the Steem function from steem library. After importing, we can use the function to access further commands (variables) inside that function. ``` >>> from steem import Steem >>> s = Steem() ``` ### All keys Using all keys, we can query. ``` >>> s.get_account('lonelywolf').keys() ```  ### Id This represents the 'user id' of the steem account holder. This is assigned whenever the user joins for 1st time and it remains permanent for the 'username' ``` >>> s.get_account('lonelywolf')['id'] 231859 ``` ### Name ``` >>> s.get_account('lonelywolf')['name'] 'lonelywolf' ``` ### Owner, Active, Posting, Memo Keys Here, all the keys required to access account's different features. - Owner ``` >>> s.get_account('lonelywolf')['owner'] {'weight_threshold': 1, 'account_auths': [], 'key_auths': [['**************************************************', 1]]} ``` - Active ``` >>> s.get_account('lonelywolf')['active'] {'weight_threshold': 1, 'account_auths': [], 'key_auths': [['**************************************************', 1]]} ``` - Posting ``` >>> s.get_account('lonelywolf')['posting'] {'weight_threshold': 1, 'account_auths': [], 'key_auths': [['**************************************************', 1]]} ``` - Memo ``` >>> s.get_account('lonelywolf')['memo_key'] '**************************************************' ``` ### Proxy It is null in this case as no proxy server used. ``` >>> s.get_account('lonelywolf')['proxy'] '' ``` ### Last owner update It comes from the UNIX command i.e. January 1st 1970. Also birthdays are written in timestamps (time from this date till date). ``` >>> s.get_account('lonelywolf')['last_owner_update'] '1970-01-01T00:00:00' ``` ### Last account update It mainly is when the account settings (public profile) was last updated. ``` >>> s.get_account('lonelywolf')['last_account_update'] '2018-11-13T17:57:18' ``` ### Account creation time The date, time when the account was created. ``` >>> s.get_account('lonelywolf')['created'] '2017-10-09T08:00:57' ``` ### Recovery account If your account gets hacked, it can be recovered before any data is manipulated. ``` >>> s.get_account('lonelywolf')['recovery_account'] 'steem' >>> s.get_account('lonelywolf')['last_account_recovery'] '1970-01-01T00:00:00' ``` Click here for details. ### Post counts The no. of posts posted by the user. ``` >>> s.get_account('lonelywolf')['post_count'] 142 ``` ### Can vote Whether a person can vote or not. ``` >>> s.get_account('lonelywolf')['can_vote'] True ``` ### Voting Power This depends upon the 'steem power' a user holds. Here, it calculates out of 10,000. ``` >>> s.get_account('lonelywolf')['voting_power'] 9715 ``` So, I hold 97.15 % voting power currently. ### Last vote time Last time, I voted. ``` >>> s.get_account('lonelywolf')['last_vote_time'] '2018-11-23T11:50:27' ``` ### Balance All balances in steem, SBD. The user account looks like this... wallet.png ``` >>> s.get_account('lonelywolf')['balance'] '0.000 STEEM' >>> s.get_account('lonelywolf')['sbd_balance'] '0.000 SBD' >>> s.get_account('lonelywolf')['savings_sbd_balance'] '0.000 SBD' ``` ### Witness votes The witnesses I have voted for. ``` >>> s.get_account('lonelywolf')['witness_votes'] ['steemed', 'utopian-io', `imacryptorick`] ``` That's all for this tutorial, stay tuned for the next tutorials. ### Proof of Work Done GitHub: https://github.com/lonelywolf1
author | lonelywolf | ||||||
---|---|---|---|---|---|---|---|
permlink | steempy-tutorials-2-basic-functions | ||||||
category | utopian-io | ||||||
json_metadata | {"community":"steempeak","app":"steempeak","format":"markdown","tags":["utopian-io","tutorials","python","steem-py","python-coding"],"users":["lonelywolf"],"links":["https://github.com/steemit/steem-python","https://steempeak.com/utopian-io/@lonelywolf/steempy-tutorials-1-installation-and-basics","https://github.com/lonelywolf1"],"image":["https://cdn.steemitimages.com/DQmcFSUorz8NrkquLgKD98jbYD2p2nMaPeKQPNscN5dM7gJ/image.png","https://files.steempeak.com/file/steempeak/lonelywolf/CGcIPuma-image.png"]} | ||||||
created | 2018-11-23 11:00:15 | ||||||
last_update | 2018-11-23 11:00:15 | ||||||
depth | 0 | ||||||
children | 6 | ||||||
last_payout | 2018-11-30 11:00:15 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.257 HBD | ||||||
curator_payout_value | 0.049 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 4,079 | ||||||
author_reputation | 25,295,791,457,391 | ||||||
root_title | "SteemPY Tutorials #2 - Basic Functions" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 75,779,327 | ||||||
net_rshares | 577,736,875,468 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
codingdefined | 0 | 7,891,373,884 | 7.5% | ||
leir | 0 | 1,899,858,078 | 50% | ||
accelerator | 0 | 20,724,159,899 | 1.5% | ||
espoem | 0 | 14,383,590,923 | 8.53% | ||
mcfarhat | 0 | 8,697,346,805 | 11.37% | ||
steem-plus | 0 | 4,221,467,189 | 0.53% | ||
jaff8 | 0 | 126,633,064,332 | 100% | ||
steemtaker | 0 | 3,432,374,550 | 3% | ||
scipio | 0 | 118,442,613,213 | 50% | ||
greenorange | 0 | 553,742,244 | 100% | ||
steemitag | 0 | 3,320,089,143 | 10% | ||
amosbastian | 0 | 62,650,454,079 | 28.44% | ||
lonelywolf | 0 | 3,454,381,131 | 100% | ||
sudefteri | 0 | 3,487,576,862 | 100% | ||
akifane | 0 | 408,419,623 | 100% | ||
properfraction | 0 | 719,203,937 | 100% | ||
onepercentbetter | 0 | 2,587,511,835 | 1% | ||
effofex | 0 | 92,093,692 | 0.75% | ||
statsexpert | 0 | 7,530,505,438 | 100% | ||
nodex | 0 | 3,782,410,243 | 100% | ||
ityp | 0 | 2,285,140,568 | 100% | ||
lemesh | 0 | 499,831,569 | 100% | ||
merlion | 0 | 1,065,675,224 | 1% | ||
v6476721 | 0 | 499,480,607 | 100% | ||
andrey915 | 0 | 499,676,305 | 100% | ||
izydorjasiski | 0 | 499,638,214 | 100% | ||
ionov57 | 0 | 499,019,496 | 100% | ||
aboriginalbook | 0 | 499,036,384 | 100% | ||
hammerthreadbare | 0 | 498,853,794 | 100% | ||
danilkramov | 0 | 499,339,186 | 100% | ||
dmitriynemov | 0 | 499,751,156 | 100% | ||
jhendrych | 0 | 499,538,502 | 100% | ||
hipolitc | 0 | 499,629,275 | 100% | ||
betterbiskuit | 0 | 235,281,972 | 50% | ||
notarfuncma | 0 | 549,850,977 | 100% | ||
syllablenod | 0 | 499,119,350 | 100% | ||
friedradius | 0 | 499,492,797 | 100% | ||
weepyhorrified | 0 | 499,272,924 | 100% | ||
closedolphin | 0 | 499,066,150 | 100% | ||
lukemccoy92 | 0 | 499,482,433 | 100% | ||
fronoguclo | 0 | 535,938,820 | 100% | ||
samakovgor | 0 | 499,474,290 | 100% | ||
metaboliss | 0 | 499,540,589 | 100% | ||
nautilusx | 0 | 499,363,480 | 100% | ||
ocundhatfa | 0 | 546,460,255 | 100% | ||
casecod | 0 | 499,620,100 | 100% | ||
victoriau7tp | 0 | 558,088,391 | 100% | ||
brookef6ek | 0 | 548,045,859 | 100% | ||
steemchoose | 0 | 21,246,794,751 | 1.05% | ||
juliaochlf | 0 | 541,531,471 | 100% | ||
steeming-hot | 0 | 20,155,056 | 0.25% | ||
quadratour | 0 | 499,360,866 | 100% | ||
varvenickel | 0 | 499,651,160 | 100% | ||
bluepeteractin | 0 | 499,677,320 | 100% | ||
puffinbusy | 0 | 500,131,761 | 100% | ||
blueberryeither | 0 | 500,278,822 | 100% | ||
isabellavi | 0 | 580,431,115 | 100% | ||
kaylaoxwsilopez | 0 | 525,076,469 | 100% | ||
ecotypedatabase | 0 | 500,281,675 | 100% | ||
nobeliumforce | 0 | 499,968,795 | 100% | ||
fizzyreadymade | 0 | 500,466,323 | 100% | ||
cheesesguns | 0 | 500,159,305 | 100% | ||
shortsminge | 0 | 500,307,409 | 100% | ||
plasthaotyaglob | 0 | 558,210,739 | 100% | ||
merlin7 | 0 | 18,509,969,112 | 1% | ||
followus | 0 | 466,110,887 | 100% | ||
nfc | 0 | 10,753,596,998 | 1% | ||
teamcr | 0 | 288,123,978 | 40% | ||
steemexpress | 0 | 1,841,819,904 | 3.5% | ||
optimizer | 0 | 19,536,149,391 | 15% | ||
curbot | 0 | 2,229,936,810 | 100% | ||
stmpay | 0 | 1,749,978,707 | 4% | ||
subclassrhyme | 0 | 503,706,876 | 100% | ||
ripebacon | 0 | 503,146,313 | 100% | ||
branchanus | 0 | 503,135,651 | 100% | ||
mightyimmune | 0 | 503,710,104 | 100% | ||
triflesleepy | 0 | 503,710,605 | 100% | ||
demonicbabinet | 0 | 503,639,195 | 100% | ||
andmen1990 | 0 | 503,459,545 | 100% | ||
morenets-1994 | 0 | 503,666,286 | 100% | ||
miss.aida | 0 | 503,434,755 | 100% | ||
msalla | 0 | 503,063,913 | 100% | ||
xolod.moroz | 0 | 503,743,890 | 100% | ||
beatlewordy | 0 | 503,464,661 | 100% | ||
pumicebreeder | 0 | 503,497,413 | 100% | ||
butanefossil | 0 | 503,671,485 | 100% | ||
mexicanrichest | 0 | 503,091,863 | 100% | ||
rheladusadal | 0 | 503,371,059 | 100% | ||
bitok.xyz | 0 | 17,547,759,823 | 2% | ||
peerzadaaabid | 0 | 522,009,022 | 100% | ||
whitebot | 0 | 56,538,478,418 | 3% |
very good postππ
author | followus |
---|---|
permlink | re-lonelywolf-steempy-tutorials-2-basic-functions-20181123t110051433z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-11-23 11:01:42 |
last_update | 2018-11-23 11:01:42 |
depth | 1 |
children | 1 |
last_payout | 2018-11-30 11:01:42 |
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 | 16 |
author_reputation | 9,738,737,936 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,779,379 |
net_rshares | 0 |
thanks!
author | lonelywolf |
---|---|
permlink | re-followus-re-lonelywolf-steempy-tutorials-2-basic-functions-20181123t115125793z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-11-23 11:51:27 |
last_update | 2018-11-23 11:51:27 |
depth | 2 |
children | 0 |
last_payout | 2018-11-30 11:51:27 |
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 | 7 |
author_reputation | 25,295,791,457,391 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,781,059 |
net_rshares | 0 |
Your contribution has been found to be plagiarized from the following source <a href="https://steemit.com/utopian-io/@abhi3700/learn-steem-python-2-basic-commands">here</a>. Plagiarism is a serious offense. Your account has been accordingly banned from receiving utopian reviews. ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | portugalcoin |
---|---|
permlink | re-lonelywolf-steempy-tutorials-2-basic-functions-20181124t005216360z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://steemit.com/utopian-io/@abhi3700/learn-steem-python-2-basic-commands","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-11-24 00:52:15 |
last_update | 2018-11-24 00:57:36 |
depth | 1 |
children | 1 |
last_payout | 2018-12-01 00:52:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.834 HBD |
curator_payout_value | 1.940 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 450 |
author_reputation | 599,460,335,323,040 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,810,787 |
net_rshares | 12,509,946,008,214 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
utopian-io | 0 | 12,433,126,146,500 | 8.66% | ||
emrebeyler | 0 | 115,211,829 | 0.01% | ||
organicgardener | 0 | 4,628,931,297 | 25% | ||
hakancelik | 0 | 30,034,754,063 | 50% | ||
mightypanda | 0 | 40,849,575,618 | 30% | ||
fastandcurious | 0 | 901,581,926 | 30% | ||
monster-inc | 0 | 289,806,981 | 50% |
Thank you for your review, @portugalcoin! Keep up the good work!
author | utopian-io |
---|---|
permlink | re-re-lonelywolf-steempy-tutorials-2-basic-functions-20181124t005216360z-20181126t045640z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.9"}" |
created | 2018-11-26 04:56:42 |
last_update | 2018-11-26 04:56:42 |
depth | 2 |
children | 0 |
last_payout | 2018-12-03 04:56:42 |
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 | 64 |
author_reputation | 152,955,367,999,756 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,915,925 |
net_rshares | 0 |
Hi, @lonelywolf! You just got a **0.53%** upvote from SteemPlus! To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn. If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
author | steem-plus |
---|---|
permlink | steempy-tutorials-2-basic-functions---vote-steemplus |
category | utopian-io |
json_metadata | {} |
created | 2018-11-24 02:10:36 |
last_update | 2018-11-24 02:10:36 |
depth | 1 |
children | 0 |
last_payout | 2018-12-01 02:10:36 |
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 | 437 |
author_reputation | 247,952,188,232,400 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 75,813,592 |
net_rshares | 0 |
Congratulations @lonelywolf! You received a personal award! <table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@lonelywolf/birthday1.png</td><td>1 Year on Steemit</td></tr></table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@lonelywolf)_</sub> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-lonelywolf-20181214t155114000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-12-14 15:51:15 |
last_update | 2018-12-14 15:51:15 |
depth | 1 |
children | 0 |
last_payout | 2018-12-21 15:51:15 |
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 | 508 |
author_reputation | 38,975,615,169,260 |
root_title | "SteemPY Tutorials #2 - Basic Functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 76,837,128 |
net_rshares | 0 |