I have updated my project a bit. It is kind of nice to know how **HIVE** and **STEEM** are doing so I took some chart widgets from CoinGecko and added to my home page. Also I have added a "Profile" thing that you can check your account information. Reputation, voting power, wallet info and delegations. ## https://floating-meadow-28045.herokuapp.com ![ezgif.com-gif-maker.gif](https://images.ecency.com/DQmPYP8ZpjaAiVcMFYTgPEic6HUzVn2ye7ZRJJ5o53Kqcnt/ezgif.com-gif-maker.gif) UI, layout stuff will probably change again soon since I am going to add information in this page, but it is a nice start. Design inspirations came from https://hivestats.io/ and https://steemworld.org/ that I use time to time but I don't use all the features. I just want some specific information and display it in my way but I like hivestats' clean design so I think it will probably end up looking like to hivestat π€£ Hopefully able to add some nice touch to it though π π π Main stuff I added was like this π ``` @app.route('/hive/profile', methods=['GET', 'POST']) def hive_profile(): form = UserNameForm(request.form) if request.method == 'POST': if form.validate(): username = request.form['username'].lower() return redirect('/hive/profile/' + username) else: flash('Username is Required') return render_template('hive/profile.html', form=form) @app.route('/hive/profile/<username>') @app.route('/hive/profile/<username>/') def hive_profile_data(username=None): data = {} if username: username = escape(username).lower() data = get_user_profile('hive', username) logging.warning('get_user_profile') logging.warning(data) if data: return render_template('hive/profile_data.html', username=username, data=data) else: return render_template('hive/profile_data.html', username=None, data=data) def get_user_profile(chain_type, username): chain = None if chain_type == 'hive': chain = set_node_list(chain_type='hive') chain.is_hive elif chain_type == 'steemit': chain = set_node_list(chain_type='steemit') else: return None # Create account object try: account = Account(username) except Exception as e: logging.warning(e) return None profile = account.profile profile['balances'] = account.get_balances() profile['voting_power'] = f"{account.get_voting_power(): .2f}" profile['reputation'] = f"{account.get_reputation(): .1f}" token_power = account.get_token_power() profile['token_power'] = f"{token_power:.3f}" logging.warning('token_power') logging.warning(token_power) # Get delegations delegations = account.get_vesting_delegations() if delegations: profile['delegations'] = get_user_delegations( chain, username, delegations) else: profile['delegations'] = [] return profile def get_user_delegations(chain, username, delegations): # Convert vest to power delegation_list = [] for d in delegations: amount = d['vesting_shares']['amount'] precision = d['vesting_shares']['precision'] precision = 10 ** precision delegatee = d['delegatee'] vest_amount = float(int(amount) / precision) if chain.is_hive: delegation_power = f"{chain.vests_to_hp(vest_amount):.3f}" elif chain.is_steem: delegation_power = f"{chain.vests_to_sp(vest_amount):.3f}" delegation_list.append( {'delegatee': delegatee, 'amount': delegation_power}) return delegation_list ``` My stuff is all in here if you like to look at it. (please dont. it is a big mess right now lol) https://github.com/tomoyan/blockchain-tools <center> [Get Rewarded For Browsing! Are you Brave?](https://brave.com/tom490) [<img src="https://img.esteem.app/be00j8.png">](https://brave.com/tom490) [![happy tears](https://images.ecency.com/DQmUfaVp5UQvASdTyyLrNiBdGB7NxQfxE2wBpNivcDUkCfe/h.gif)](https://tomoyan.github.io/) β‘οΈ [Website](tomoyan.github.io) β‘οΈ [Twitter ](twitter.com/tomoyanTweet) </center>
author | tomoyan | ||||||
---|---|---|---|---|---|---|---|
permlink | python-beem-project-account-information-part-5 | ||||||
category | python | ||||||
json_metadata | {"links":["https://floating-meadow-28045.herokuapp.com","https://hivestats.io/","https://steemworld.org/","https://github.com/tomoyan/blockchain-tools","https://brave.com/tom490","https://brave.com/tom490","https://tomoyan.github.io/"],"image":["https://images.ecency.com/DQmPYP8ZpjaAiVcMFYTgPEic6HUzVn2ye7ZRJJ5o53Kqcnt/ezgif.com-gif-maker.gif","https://img.esteem.app/be00j8.png","https://images.ecency.com/DQmUfaVp5UQvASdTyyLrNiBdGB7NxQfxE2wBpNivcDUkCfe/h.gif"],"users":["app.route","app.route","app.route"],"tags":["python","beem","account","hive","steem","programming","marlians","dblog","palnet","neoxian"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"} | ||||||
created | 2020-07-30 14:21:36 | ||||||
last_update | 2020-07-30 14:21:36 | ||||||
depth | 0 | ||||||
children | 8 | ||||||
last_payout | 2020-08-06 14:21:36 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 1.227 HBD | ||||||
curator_payout_value | 1.253 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 4,274 | ||||||
author_reputation | 144,440,848,820,221 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,800,849 | ||||||
net_rshares | 7,766,656,140,005 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
chitty | 0 | 312,976,152,460 | 75% | ||
mys | 0 | 1,386,918,866 | 0.54% | ||
pibara | 0 | 206,911,349,000 | 100% | ||
whd | 0 | 684,084,237 | 0.54% | ||
gniksivart | 0 | 83,597,162,868 | 60% | ||
tykee | 0 | 3,555,722,332 | 50% | ||
helgapn | 0 | 6,404,174,097 | 100% | ||
shogo | 0 | 93,325,259,978 | 40% | ||
rehan12 | 0 | 7,499,382,671 | 5% | ||
saltiberra | 0 | 5,612,386,270 | 50% | ||
fbslo | 0 | 1,066,094,286 | 0.27% | ||
argon | 0 | 139,719,742,885 | 28% | ||
hokkaido | 0 | 668,522,509 | 20% | ||
puncakbukit | 0 | 128,955,427,046 | 20% | ||
martusamak | 0 | 3,204,456,074 | 100% | ||
pataty69 | 0 | 34,401,952,189 | 100% | ||
kamchore | 0 | 143,071,476,243 | 100% | ||
fourfourfun | 0 | 1,145,094,958 | 4.37% | ||
slashformotion | 0 | 456,108,122 | 100% | ||
mmmmkkkk311 | 0 | 261,462,904,945 | 3.5% | ||
fun2learn | 0 | 5,494,605,549 | 3% | ||
bala41288 | 0 | 41,982,460,684 | 20% | ||
warnas | 0 | 40,549,981,732 | 10% | ||
holger80 | 0 | 2,170,508,023,056 | 50% | ||
yasu | 0 | 6,400,703,656 | 50% | ||
tatylayla | 0 | 1,077,223,249 | 100% | ||
scottshots | 0 | 2,625,466,294 | 4% | ||
tama.arin | 0 | 1,252,185,785 | 100% | ||
paragism | 0 | 23,694,683,378 | 100% | ||
brainpod | 0 | 534,561,168 | 25% | ||
julialee66 | 0 | 459,152,337,699 | 3% | ||
awie | 0 | 1,723,589,588 | 100% | ||
promobot | 0 | 16,094,075,500 | 17.5% | ||
valentin86 | 0 | 958,970,215 | 100% | ||
ntowl | 0 | 703,034,288 | 3.5% | ||
devilsdad | 0 | 9,343,542,446 | 100% | ||
digital.mine | 0 | 1,304,421,608,556 | 47% | ||
suonghuynh | 0 | 18,096,596,553 | 5.4% | ||
joaoprobst | 0 | 1,320,467,494 | 100% | ||
zainenn | 0 | 12,508,488,212 | 10% | ||
dcooperation | 0 | 7,345,199,664 | 2% | ||
fullnodeupdate | 0 | 13,972,036,645 | 50% | ||
munhenhos | 0 | 8,532,672,221 | 100% | ||
laissez-faire | 0 | 38,497,231 | 100% | ||
glastar | 0 | 77,080,161,650 | 5% | ||
dein-problem | 0 | -35,876,799 | -0.5% | ||
tamito0201 | 0 | 646,346,827 | 40% | ||
bolachasmonster | 0 | 3,759,789,709 | 100% | ||
janyasai | 0 | 4,716,069,462 | 30% | ||
pfdm | 0 | 1,154,415,565 | 10% | ||
likwid | 0 | 1,795,958,124,372 | 17.5% | ||
rull14958 | 0 | 916,866,931 | 35% | ||
yasu.pal | 0 | 1,390,290,866 | 50% | ||
icetea | 0 | 6,913,099,480 | 30% | ||
tonimontana.neo | 0 | 0 | 0.46% | ||
ackerman77 | 0 | 14,382,409,122 | 100% | ||
uthus2k | 0 | 4,085,400,123 | 100% | ||
greatnorthcrypto | 0 | 2,910,320,424 | 90% | ||
lacking | 0 | 191,996,826,700 | 100% | ||
greenforever | 0 | 943,926,592 | 30% | ||
gitplait | 0 | 66,385,303,726 | 100% | ||
mynima | 0 | 3,904,486,432 | 100% | ||
alexbalan | 0 | 2,888,403,681 | 100% | ||
archonx.voter | 0 | 1,112,195,681 | 30% | ||
mrx.hiver | 0 | 1,112,196,562 | 30% |
This is shaping up really great. I really like how it looks now.
author | alexbalan |
---|---|
permlink | re-tomoyan-qeahek |
category | python |
json_metadata | {"tags":["python"],"app":"peakd/2020.07.2"} |
created | 2020-07-30 15:52:15 |
last_update | 2020-07-30 15:52:15 |
depth | 1 |
children | 3 |
last_payout | 2020-08-06 15:52:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.012 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 64 |
author_reputation | 7,291,343,466,873 |
root_title | "Python Beem Project: Account Information Part 5" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,802,166 |
net_rshares | 116,358,326,675 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tomoyan | 0 | 116,358,326,675 | 100% |
really really really π€© π€© π€©
author | tomoyan | ||||||
---|---|---|---|---|---|---|---|
permlink | re-alexbalan-2020730t10278296z | ||||||
category | python | ||||||
json_metadata | {"tags":["python"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"} | ||||||
created | 2020-07-30 17:27:09 | ||||||
last_update | 2020-07-30 17:27:09 | ||||||
depth | 2 | ||||||
children | 2 | ||||||
last_payout | 2020-08-06 17:27:09 | ||||||
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 | 26 | ||||||
author_reputation | 144,440,848,820,221 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,803,593 | ||||||
net_rshares | 2,769,154,189 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
alexbalan | 0 | 2,769,154,189 | 100% |
Oh yeah, it looks great, I like it a lot. π€©π Posted using [Dapplr](https://app.dapplr.in/4zPDNkNqqaqkin536)
author | alexbalan | ||||||
---|---|---|---|---|---|---|---|
permlink | ohyeahitlooksgreatilik-526nrd7jc50c5se2hcqjt0ho38tihwfm | ||||||
category | python | ||||||
json_metadata | {"app":"dapplr","format":"markdown","tags":["dapplr"],"media":[],"users_tagged":[]} | ||||||
created | 2020-07-30 17:56:48 | ||||||
last_update | 2020-07-30 17:56:48 | ||||||
depth | 3 | ||||||
children | 1 | ||||||
last_payout | 2020-08-06 17:56:48 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.012 HBD | ||||||
curator_payout_value | 0.012 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 110 | ||||||
author_reputation | 7,291,343,466,873 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,804,130 | ||||||
net_rshares | 115,284,773,992 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tomoyan | 0 | 115,284,773,992 | 100% |
I have picked your post for my daily hive voting initiative, Keep it up and Hive On!!
author | chitty |
---|---|
permlink | re-python-beem-project-account-information-part-5-20200731t000407 |
category | python |
json_metadata | "" |
created | 2020-07-31 00:04:12 |
last_update | 2020-07-31 00:04:12 |
depth | 1 |
children | 1 |
last_payout | 2020-08-07 00:04:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.012 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 86 |
author_reputation | 86,901,300,608,582 |
root_title | "Python Beem Project: Account Information Part 5" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,809,048 |
net_rshares | 118,577,382,086 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tomoyan | 0 | 118,577,382,086 | 100% |
Thank you βΊοΈ
author | tomoyan | ||||||
---|---|---|---|---|---|---|---|
permlink | re-chitty-2020730t19504573z | ||||||
category | python | ||||||
json_metadata | {"tags":["esteem"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"} | ||||||
created | 2020-07-31 02:50:03 | ||||||
last_update | 2020-07-31 02:50:03 | ||||||
depth | 2 | ||||||
children | 0 | ||||||
last_payout | 2020-08-07 02:50: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 | 13 | ||||||
author_reputation | 144,440,848,820,221 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,810,407 | ||||||
net_rshares | 0 |
This is beginning to intrigued me. What's the language? I'm familiar with perl and PHP and have used them quite a bit. Perl is easier to write, but PHP has better database hooks.
author | uthus2k | ||||||
---|---|---|---|---|---|---|---|
permlink | re-tomoyan-2020730t163420674z | ||||||
category | python | ||||||
json_metadata | {"tags":["python","beem","account","hive","steem","programming","marlians","dblog","palnet","neoxian"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"} | ||||||
created | 2020-07-30 21:34:21 | ||||||
last_update | 2020-07-30 21:34:21 | ||||||
depth | 1 | ||||||
children | 1 | ||||||
last_payout | 2020-08-06 21:34:21 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.012 HBD | ||||||
curator_payout_value | 0.012 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 178 | ||||||
author_reputation | 6,252,156,892,182 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,806,981 | ||||||
net_rshares | 117,225,565,011 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tomoyan | 0 | 117,225,565,011 | 100% |
Looking at other people's wallet is fun right π I am using python. If you know perl and PHP, you can do python too. Pretty easy... similar to perl. I thought you were a brown legged speedo person π
author | tomoyan | ||||||
---|---|---|---|---|---|---|---|
permlink | re-uthus2k-2020730t145610845z | ||||||
category | python | ||||||
json_metadata | {"tags":["python","beem","account","hive","steem","programming","marlians","dblog","palnet","neoxian"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"} | ||||||
created | 2020-07-30 21:56:12 | ||||||
last_update | 2020-07-30 21:56:12 | ||||||
depth | 2 | ||||||
children | 0 | ||||||
last_payout | 2020-08-06 21:56:12 | ||||||
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 | 197 | ||||||
author_reputation | 144,440,848,820,221 | ||||||
root_title | "Python Beem Project: Account Information Part 5" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,807,229 | ||||||
net_rshares | 3,639,887,851 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
uthus2k | 0 | 3,639,887,851 | 100% |