Today I was experimenting with some code from @felixxx latest beem tutorial post https://steempeak.com/busy/@felixxx/python-for-steem-3-modules. Here is the output of the beemaccount.py that I was testing out various beem modules. The Python code is listed below the image.  ```python from beem.account import Account from beem.blockchain import Blockchain from beem import Steem from beem.instance import set_shared_steem_instance #steemit_api = Steem(node=["https://testnet.steemitdev.com"]) steemit_api = Steem(node=["https://api.steemit.com"]) set_shared_steem_instance(steemit_api) blockchain = Blockchain() head_block = blockchain.get_current_block_num() test_account = Account(account = "mytechtrail") print(head_block) print("\n") print(test_account.balances) print("\n") print(test_account.get_balance("available", "VESTS")) print("\n") print(test_account.get_voting_power()) print("\n") for operation in test_account.history_reverse(start = head_block, stop = head_block - 10000, use_block_num = True): print(operation) print("\n") ``` This was fun, but shows me how much I need to learn how to work with Python data structures like the dictionary.
author | mytechtrail |
---|---|
permlink | teaching-myself-python-day-6 |
category | ulog |
json_metadata | {"app":"steempeak/1.19.0","format":"markdown","tags":["ulog","marlians","palnet","python","stem","ctp"],"users":["felixxx"],"links":["/@felixxx","/busy/@felixxx/python-for-steem-3-modules"],"image":["https://files.steempeak.com/file/steempeak/mytechtrail/qAIsxfFx-pylearn-day6.png"]} |
created | 2019-11-04 20:07:45 |
last_update | 2019-11-04 20:07:45 |
depth | 0 |
children | 2 |
last_payout | 2019-11-11 20:07:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.131 HBD |
curator_payout_value | 0.129 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,274 |
author_reputation | 19,007,675,085,002 |
root_title | "Teaching myself Python Day 6" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,201,204 |
net_rshares | 1,364,715,896,334 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
felixxx | 0 | 581,824,385,412 | 100% | ||
rishi556 | 0 | 28,601,934,747 | 100% | ||
zorg67 | 0 | 1,169,714,051 | 100% | ||
pouchon | 0 | 225,633,583,744 | 100% | ||
hercules85 | 0 | 0 | 100% | ||
conradsuperb | 0 | 5,822,795,992 | 10% | ||
ericburgoyne | 0 | 13,190,958,639 | 41% | ||
dmxmaster | 0 | 574,575,828 | 100% | ||
wirago | 0 | 10,844,782,191 | 100% | ||
solominer | 0 | 18,232,686,230 | 3% | ||
sbi4 | 0 | 439,739,274,264 | 59.65% | ||
nordal | 0 | 566,123,508 | 100% | ||
amir01 | 0 | 512,713,350 | 100% | ||
ds-tech | 0 | 786,417,080 | 100% | ||
brendanweinhold | 0 | 153,011,039 | 100% | ||
raspibot | 0 | 554,794,951 | 100% | ||
kendra19 | 0 | 2,498,172,796 | 100% | ||
s77assistant | 0 | 32,756,109,160 | 44.95% | ||
sbi-tokens | 0 | 198,455,031 | 6.67% | ||
curation.stem | 0 | 104,179,623 | 75% | ||
ctl001 | 0 | 582,357,119 | 100% | ||
kenanmirzeyv | 0 | 34,326,796 | 100% | ||
ewi5000 | 0 | 317,330,289 | 100% | ||
curpal | 0 | 17,214,494 | 10% |
Learning to code can be fun and excruciating at the same time! Most of my coding has been around web development so HTML5, CSS3, SASS/LESS, PHP, and Javascript. Honestly CSS is a hard language to master despite not even being a logical programming language. I've thought about learning Python, but I haven't had the need for it yet.
author | ds-tech |
---|---|
permlink | q0htx6 |
category | ulog |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-11-05 11:15:06 |
last_update | 2019-11-05 11:15:06 |
depth | 1 |
children | 1 |
last_payout | 2019-11-12 11:15:06 |
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 | 333 |
author_reputation | 9,748,583,551,565 |
root_title | "Teaching myself Python Day 6" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,218,436 |
net_rshares | 0 |
I am learning Python mostly for fun and to keep learning something. Although as someone on Steem it is interesting to learn something that I can use to query the blockchain and learn more.
author | mytechtrail |
---|---|
permlink | re-ds-tech-q0i5rp |
category | ulog |
json_metadata | {"tags":["ulog"],"app":"steempeak/1.19.0"} |
created | 2019-11-05 15:31:03 |
last_update | 2019-11-05 15:31:03 |
depth | 2 |
children | 0 |
last_payout | 2019-11-12 15:31:03 |
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 | 188 |
author_reputation | 19,007,675,085,002 |
root_title | "Teaching myself Python Day 6" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 92,225,282 |
net_rshares | 0 |