create account

Steem-python question by frdem3dot0

View this thread on steemit.com
· @frdem3dot0 · (edited)
$2.88
Steem-python question
I am currently playing around with programming some steem-bots using steem-python and have a problem for that I build a rather complicated solution, while there is probably a better way to do it. 

![Gygv9V.jpeg](https://cdn.steemitimages.com/DQmVJdssgyJs3fAz3UuCHJcq1FQmzjceXb5WWVvFrP1EoDo/Gygv9V.jpeg)

I want to find out who delegates __to__ a given Account (and how much) and who __follows__ that Account.

Also I have just started with steem-pyhton and not given much consideration to the existing alternatives. What are the advantages of libraries such as BEEM compared to steem-python?

I will put 2.5 SBD as a steem-bounty for the best answers.
👍  , , , , , , , , , , , , , , ,
properties (37)
authorfrdem3dot0
permlinksteem-python-question
categorysteem
json_metadata{"tags":["steem","python","bots","steem-bounty","nobidbot"],"image":["https://cdn.steemitimages.com/DQmVJdssgyJs3fAz3UuCHJcq1FQmzjceXb5WWVvFrP1EoDo/Gygv9V.jpeg"],"app":"steemit/0.1","format":"markdown"}
last_update2018-09-11 08:56:30
created2018-09-11 08:18:45
active2018-09-18 08:19:09
last_payout2018-09-18 08:18:45
depth0
children19
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value2.175 SBD
curator_payout_value0.704 SBD
author_rewards2,996
net_votes16
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (16)
@steem-bounty ·
Buonty added
@frdem3dot0 has set 2.500 SBD bounty on this post!
 ![logo_for-light-bg_1000.png](https://steemitimages.com/DQmdYbGNQCwrAsveg9Yv5YeRqCCzjCYhoavinDwYLqPN9mu/logo_for-light-bg_1000.png)   <br>


Bounties are  a new way you can earn rewards irrespective of you Steem Power.  Go [here](https://steemit.com/steem-bounty/@rjoshicool/how-to-use-steem-bounty-one-of-the-most-popular-dapp-on-steem-blockchain) to learn how bounties work.

Earn the bounty by commenting what you think the bounty creator wants to know from you.

[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.

Happy Rewards Hunting!
properties (36)
authorsteem-bounty
permlinkre-steem-python-question-20180911t083746
categorysteem
json_metadata"{"max_accepted_payout": "0.000 SBD", "author": "frdem3dot0", "allow_curation_rewards": false, "allow_votes": false, "permlink": "steem-python-question", "percent_steem_dollars": 0}"
last_update2018-09-11 08:37:48
created2018-09-11 08:37:48
active2018-09-18 08:19:09
last_payout2018-09-18 08:37:48
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation40,228,126,915,511
promoted0.000 SBD
body_length0
reblogged_by[]
@steem-bounty ·
Bounty Payout
Congratulations to the following winner(s) of the bounty!
- @holger80 has earned 1.096 SBD. 1.069 SBD from the creator of the bounty and 0.027 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
- @culgin has earned 0.299 SBD. 0.214 SBD from the creator of the bounty and 0.086 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
- @pibara has earned 0.855 SBD. 0.855 SBD from the creator of the bounty and 0.000 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
properties (36)
authorsteem-bounty
permlinkre-re-steem-python-question-20180911t083746-20180918t081912
categorysteem
json_metadata"{"author": "steem-bounty", "allow_curation_rewards": false, "allow_votes": false, "max_accepted_payout": "0.000 SBD", "permlink": "re-steem-python-question-20180911t083746", "percent_steem_dollars": 0}"
last_update2018-09-18 08:19:09
created2018-09-18 08:19:09
active2018-09-18 08:19:09
last_payout2018-09-25 08:19:09
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation40,228,126,915,511
promoted0.000 SBD
body_length0
reblogged_by[]
@chekohler ·
I think@brendanvanbreda may be able to help you with this one. Check it out man!
properties (36)
authorchekohler
permlinkre-frdem3dot0-steem-python-question-20180911t084031788z
categorysteem
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["steem"],"users":["brendanvanbreda"],"links":[],"image":[]}
last_update2018-09-11 08:40:33
created2018-09-11 08:40:33
active2018-09-11 08:40:33
last_payout2018-09-18 08:40:33
depth1
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation10,430,553,654,665
promoted0.000 SBD
body_length0
reblogged_by[]
@tobixen ·
There is also the lightsteem python client, but I've heard rumors that it's a clone/rip-off of beem?

I haven't done much programming against steem, though I do have some ideas I've been considering to implement.
properties (36)
authortobixen
permlinkre-frdem3dot0-steem-python-question-20180911t085725496z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 08:57:24
created2018-09-11 08:57:24
active2018-09-12 07:05:33
last_payout2018-09-18 08:57:24
depth1
children3
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation13,259,638,139,798
promoted0.000 SBD
body_length0
reblogged_by[]
@frdem3dot0 ·
what kind of ideas do you have? I am mostly interested in advertisement. The current bidbots are not delivering for people that want to advertise and they are also not delivering for the community. In the end they only work because of steem-inflation and are not real advertisement products with a logical revenue stream. 

Instead I am interested in trying other solutions to advertisement.
👍  
properties (37)
authorfrdem3dot0
permlinkre-tobixen-re-frdem3dot0-steem-python-question-20180911t105457793z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 10:54:57
created2018-09-11 10:54:57
active2018-09-12 07:05:33
last_payout2018-09-18 10:54:57
depth2
children2
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)
@tobixen ·
I already have some scripts for checking the average market rate for various crypto currencies and setting up market maker orders towards some few exchanges.  I was making great profits running those scripts towards some bad Norwegian exchange with low turnover and stupid customers, eventually I was thrown out of that exchange, I don't think I'm earning much money on it as it is now (but I think it's still useful for converting crypto currencies for the lowest possible cost).  I also doubt I would earn much money on using those scripts for buying SBD on the market and converting it back to steem, but at least I would be able to offer a service to the community (reduce the SBD debt) without paying too much for it.
properties (36)
authortobixen
permlinkre-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180911t211744732z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 21:17:45
created2018-09-11 21:17:45
active2018-09-12 07:05:33
last_payout2018-09-18 21:17:45
depth3
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation13,259,638,139,798
promoted0.000 SBD
body_length0
reblogged_by[]
@holger80 · (edited)
$0.05
A working solution with beem (`pip install beem` installs it):
```
from beem import Steem
from beem.account import Account
from beem.snapshot import AccountSnapshot


if __name__ == "__main__":
    stm = Steem()
    account = Account("holger80", steem_instance=stm)
    
    followers = account.get_followers()
    print("%d accounts follow %s" % (len(followers), account["name"]))
    
    ops = []
    for op in account.history(only_ops=["delegate_vesting_shares"]):
        ops.append(op)
    
    acc_info = AccountSnapshot(account, account_history=ops, steem_instance=stm)
    acc_info.build()
    data = acc_info.get_data()
    delegated_vests_in = data["delegated_vests_in"]
    delegated_sp_in = {}
    for d in delegated_vests_in:
        delegated_sp_in[d] = stm.vests_to_sp(delegated_vests_in[d])
    print("Incoming delegations: %s" % str(delegated_sp_in))
  ```
👍  , ,
properties (37)
authorholger80
permlinkre-frdem3dot0-steem-python-question-20180911t103041856z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 11:08:27
created2018-09-11 10:30:45
active2018-09-11 13:31:21
last_payout2018-09-18 10:30:45
depth1
children3
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.042 SBD
curator_payout_value0.011 SBD
author_rewards58
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation53,099,795,604,581
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)
@frdem3dot0 ·
thanks a lot!
👍  
properties (37)
authorfrdem3dot0
permlinkre-holger80-re-frdem3dot0-steem-python-question-20180911t105942955z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 10:59:42
created2018-09-11 10:59:42
active2018-09-11 10:59:42
last_payout2018-09-18 10:59:42
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)
@culgin ·
I think the Account.history function isn't available on steem-python. I should have started using beem earlier. Haha..

Posted using [Partiko Android](https://steemit.com/@partiko-android)
properties (36)
authorculgin
permlinkculgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t115435709z
categorysteem
json_metadata{"app":"partiko"}
last_update2018-09-11 11:54:36
created2018-09-11 11:54:36
active2018-09-11 13:31:21
last_payout2018-09-18 11:54:36
depth2
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation43,743,452,976,203
promoted0.000 SBD
body_length0
reblogged_by[]
@frdem3dot0 ·
Maybe I should also switch to beem...
👍  
properties (37)
authorfrdem3dot0
permlinkre-culgin-culgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t133122117z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 13:31:21
created2018-09-11 13:31:21
active2018-09-11 13:31:21
last_payout2018-09-18 13:31:21
depth3
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)
@hijosdelhombre ·
**Speed Difference?**
properties (36)
authorhijosdelhombre
permlinkre-frdem3dot0-steem-python-question-20180911t104845659z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 10:48:45
created2018-09-11 10:48:45
active2018-09-11 10:56:42
last_payout2018-09-18 10:48:45
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation16,359,944,258,971
promoted0.000 SBD
body_length0
reblogged_by[]
@frdem3dot0 ·
$0.03
so far I find that the speed is mostly limited by the communication with the nodes.
👍  ,
properties (37)
authorfrdem3dot0
permlinkre-hijosdelhombre-re-frdem3dot0-steem-python-question-20180911t105640997z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 10:56:42
created2018-09-11 10:56:42
active2018-09-11 10:56:42
last_payout2018-09-18 10:56:42
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.020 SBD
curator_payout_value0.005 SBD
author_rewards28
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)
@culgin · (edited)
$0.13
I tried to do something similar to get delegation info of any account.

https://steemit.com/steem/@culgin/finding-out-who-delegated-to-me-with-python-is-there-an-easier-way

You will find that it takes a long time to generate delegation info.

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  , ,
properties (37)
authorculgin
permlinkculgin-re-frdem3dot0-steem-python-question-20180911t111824626z
categorysteem
json_metadata{"app":"partiko"}
last_update2018-09-11 11:33:45
created2018-09-11 11:18:27
active2018-09-11 13:44:12
last_payout2018-09-18 11:18:27
depth1
children2
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.097 SBD
curator_payout_value0.030 SBD
author_rewards134
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation43,743,452,976,203
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)
@frdem3dot0 ·
$0.03
yes, that is similar to my current implementation where I brutally search the entire account transactions of the past .
👍  , ,
properties (37)
authorfrdem3dot0
permlinkre-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t133024016z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 13:30:24
created2018-09-11 13:30:24
active2018-09-11 13:44:12
last_payout2018-09-18 13:30:24
depth2
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.028 SBD
curator_payout_value0.004 SBD
author_rewards39
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)
@culgin ·
$0.03
I think that's necessary. I checked with @justyy, who runs the following site, https://helloacm.com/tools/steemit/delegatees/ 

They too need to run the API in the background and store the delegation information in a database to provide a faster way to check delegation info.

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  ,
properties (37)
authorculgin
permlinkculgin-re-frdem3dot0-re-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t134412658z
categorysteem
json_metadata{"app":"partiko"}
last_update2018-09-11 13:44:12
created2018-09-11 13:44:12
active2018-09-11 13:44:12
last_payout2018-09-18 13:44:12
depth3
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.026 SBD
curator_payout_value0.007 SBD
author_rewards36
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation43,743,452,976,203
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)
@pibara · (edited)
The number one advantage of using either been or asyncsteem instead of the official python library, no doubt is error handling. I would argue that for a **new** project choosing one of the alternatives is a no brainer and the question shouldn't be **if** you should use an alternative library, but **what** alternative library you should use. 

The two main choices I believe are **beem**, a library with a close to complete python API that allows you to do all that the official lib does but without most of its issues, and **asyncsteem**, a library that doesn't implement signed operations, but that does implement its functionality in an **asynchronous** non blocking way, so it can be used with the Python Twisted framework, allowing for scalable networking implementation that don't require the old threadded can of worms approach, but use the non blocking asynchronous setup popularized in recent years by Node JS in the JavaScript world and different asio libs such as boost-asio in other languages .

So basically: 

* If you have a huge legacy code base, maybe keep using the legacy official library.
* If you start from zero and need signed operations, use beem.
* If you start from zero and need asynchronous non blocking operations, use asyncsteem.
* If you need both signing and async, currently, don't use Python

I think for this usecase, using an asynchronous approach would have its merits especially if you want some kind of web interface and don't want to be using a database all the time. 

You would want to keep something of an in memory cache, probably, spitting through the history of any account you find to be active that you haven't currently cached yet, so you don't need to do last second history exploration. Then you will want to update the cache on new transactions and timeouts  that update delegation . If, for example through web interface, an non-cached account is queried, only non-hits will take long to answer. 

You could probably do this with Been as well, but you will either need to use old school shared state concurrency (threads, locks, mutexes), or opt for using a database all the time for a data set that should easily fit in memory. With asyncsteem you could do it without threads, mutexes, locks or databases with just one single always running process . This is of cause assuming you need a web user interface. If these lookups are meant purely within the context of a pure STEEM only bot without any non-steem user interaction, then Beem would do just fine, and as you will want to use signed operations to interact with the world, Beem would actually be the best option.

Hope the above isn't too confusing.
👍  
properties (37)
authorpibara
permlinkre-frdem3dot0-steem-python-question-20180912t041821114z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-12 05:10:57
created2018-09-12 04:18:24
active2018-09-12 07:09:27
last_payout2018-09-19 04:18:24
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,920,132,035,660
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)
@frdem3dot0 ·
$0.03
thanks a lot, that was a great summary. I will probably write my next project using beem.
👍  ,
properties (37)
authorfrdem3dot0
permlinkre-pibara-re-frdem3dot0-steem-python-question-20180912t070927279z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-12 07:09:27
created2018-09-12 07:09:27
active2018-09-12 07:09:27
last_payout2018-09-19 07:09:27
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.021 SBD
curator_payout_value0.005 SBD
author_rewards29
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,045,987,774,539
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)
@steem-ua ·
#### Hi @frdem3dot0!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 2.672 which ranks you at **#13643** across all Steem accounts.
Your rank has dropped 28 places in the last three days (old rank 13615).

In our last Algorithmic Curation Round, consisting of 316 contributions, your post is ranked at **#69**.
##### Evaluation of your UA score:

* Only a few people are following you, try to convince more people with good work.
* The readers like your work!
* Good user engagement!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (36)
authorsteem-ua
permlinkre-steem-python-question-20180912t113228z
categorysteem
json_metadata"{"app": "beem/0.19.54"}"
last_update2018-09-12 11:32:30
created2018-09-12 11:32:30
active2018-09-12 11:32:30
last_payout2018-09-19 11:32:30
depth1
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation18,858,982,911,611
promoted0.000 SBD
body_length0
reblogged_by[]