create account

Update for beem: huge performance improvements and bridge API support by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$94.24
Update for beem: huge performance improvements and bridge API support
## Repository
https://github.com/holgern/beem<center>
![beem-logo](https://cdn.steemitimages.com/DQmcRrwLPSywSYMierfP6um6mejeMNGjN9Rxw7audJqTDgb/beem-logo)
</center>
[beem](https://github.com/holgern/beem) is a python library for STEEM and HIVE.  The current version is 0.22.13.

There is also a discord channel for beem: https://discord.gg/4HM592V

The newest beem version can be installed by:

```
pip install -U beem
```

Check that you are using hive nodes. The following command 
```
beempy updatenodes --hive
```
updates the nodelist and uses only hive nodes. The list of nodes can be checked with
```
beempy config
```
and
```
beempy currentnode
```
shows the currently connected node.

## Changelog for versions 0.22.13
* HiveSigner support added
* api link to steemconnect has been fixed
* change recovery account added to beempy
* hive node has been added
* add account get_notifications and mark_notifications_as_read
* beempy notifications has been added
* bridge api support added
* config storage improved and add get_default_config_storage, get_default_key_storage and get_default_token_storage
* list_all_subscriptions and get_account_posts added
* reduce number of performed api calls on Steem object creation

## Performance boost for beem
All integration tests are finishing now in
```
========== 469 passed, 27 skipped, 11 warnings in 1040.19s (0:17:20) ===========
```
which is an improvement of 49% (version 0.22.12 needed 1551 seconds).

This huge boost could be accomplished by reducing the number of API calls when creating the Steem object. When importing objects from beem, a `configStorage` object is no longer created during import. The config storage is now read during object creation with `get_default_config_storage`. This speeds up importing beem modules and read stored parameter only when needed.

These changes improves also the speed of all beempy commands.

## Bridge API
beem supports now parts of the bridge API. More functions to support the missing API calls will follow.

### notifications
```
beempy notifications holger80
```
prints a table with unread notifications.
```
+---------------------+------+-------------------------------------------+
|                Date | Type |                                   Message |
+---------------------+------+-------------------------------------------+
| 2020-04-06 10:15:57 | vote |       @uwelang voted on your post ($0.23) |
| 2020-04-06 12:52:00 | vote | @steemcleaners voted on your post ($2.45) |
+---------------------+------+-------------------------------------------+
```
They can also marked as read with `-m`
```
beempy notifications -m holger80
```
which broadcasts notify custom_json. 

### list all subscribtions
The account object has now a `list_all_subscriptions` functions which returns   a list with all cummunities which the account has subscript.

### get_account_posts
The account object has now the `get_account_posts` function, which can be used to fetch all posts shown in the feed of the account.

### get_ranked_posts
A new class `RankedPosts` was added to `beem.comment` which can be used to receive ranked posts.

## Change recovery account with beempy
It is now possible to change the recovery account using beempy
```
beempy changerecovery -a holge80 recovery.account
```

## HiveSigner support was added
The following python example shows how to create a login link:
```
from beem.hivesigner import HiveSigner
hivesigner = HiveSigner(client_id="rewarding.app", scope="login", get_refresh_token=False)
hivesigner.get_login_url('https://rewarding.app/welcome')
```
returns
```
'https://hivesigner.com/oauth2/authorize?client_id=rewarding.app&redirect_uri=https%3A%2F%2Frewarding.app%2Fwelcome&scope=login'
```
The received token can then be used to check if a user was successfully entering its posting key in a python script:
```
try:
    hivesigner.set_access_token(access_token)
    name = hivesigner.me()["name"]
except:
    print("Wrong token")
```

***
*If you like what I do, consider casting a vote for me as witness on [Hivesigner](https://hivesigner.com/sign/account-witness-vote?witness=holger80&approve=1) or on [PeakD](https://peakd.com/witnesses)*.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 382 others
👎  , ,
properties (23)
authorholger80
permlinkupdate-for-beem-huge-performance-improvements-and-bridge-api-support
categoryhive-139531
json_metadata{"app":"peakd/2020.04.3","format":"markdown","tags":["development","hive","beem","python"],"users":["uwelang","steemcleaners"],"links":["https://github.com/holgern/beem","https://github.com/holgern/beem","https://discord.gg/4HM592V","https://hivesigner.com/sign/account-witness-vote?witness=holger80&amp;approve=1","/witnesses"],"image":["https://cdn.steemitimages.com/DQmcRrwLPSywSYMierfP6um6mejeMNGjN9Rxw7audJqTDgb/beem-logo"]}
created2020-04-06 12:04:18
last_update2020-04-18 20:29:27
depth0
children18
last_payout2020-04-13 12:04:18
cashout_time1969-12-31 23:59:59
total_payout_value49.268 HBD
curator_payout_value44.973 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,183
author_reputation358,857,509,568,825
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,730,241
net_rshares250,442,108,521,139
author_curate_reward""
vote details (449)
@aafeng ·
Amazing! Thanks!
properties (22)
authoraafeng
permlinkq8fv0m
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-07 22:12:24
last_update2020-04-07 22:12:24
depth1
children0
last_payout2020-04-14 22:12:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length16
author_reputation554,723,599,569,926
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,750,450
net_rshares0
@agr8buzz ·
Awesome updates! 
properties (22)
authoragr8buzz
permlinkre-holger80-q8dpv9
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-06 18:26:03
last_update2020-04-06 18:26:03
depth1
children0
last_payout2020-04-13 18:26:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation61,698,497,910,324
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,734,753
net_rshares0
@amico ·
@tipu curate
___
A huge hug from @amico! 🤗
properties (22)
authoramico
permlinkre-update-for-beem-huge-performance-improvements-and-bridge-api-support-20200406t120859z
categoryhive-139531
json_metadata"{"app": "rewarding/0.1.0"}"
created2020-04-06 12:09:30
last_update2020-04-06 12:09:30
depth1
children0
last_payout2020-04-13 12:09:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation51,076,240,298,517
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,730,300
net_rshares0
@angel33 ·
Informative post. It'll be useful
properties (22)
authorangel33
permlinkre-holger80-202046t204746311z
categoryhive-139531
json_metadata{"tags":["development","hive","beem","python"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-04-06 15:17:45
last_update2020-04-06 15:17:45
depth1
children0
last_payout2020-04-13 15:17:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation40,716,090,911
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,732,677
net_rshares0
@bobinson ·
excellent progress. Thank you !
properties (22)
authorbobinson
permlinkq8do0x
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-06 17:46:09
last_update2020-04-06 17:46:09
depth1
children0
last_payout2020-04-13 17:46:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation55,343,141,313,811
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,734,380
net_rshares0
@chiren ·
Nice work!
properties (22)
authorchiren
permlinkre-holger80-q8ddw0
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-06 14:07:03
last_update2020-04-06 14:07:03
depth1
children0
last_payout2020-04-13 14:07:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation45,363,105,266,100
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,731,760
net_rshares0
@chitty ·
I have picked your post for my daily hive voting initiative, Keep it up and Hive On!!
properties (22)
authorchitty
permlinkre-update-for-beem-huge-performance-improvements-and-bridge-api-support-20200411t195551
categoryhive-139531
json_metadata""
created2020-04-11 19:55:54
last_update2020-04-11 19:55:54
depth1
children0
last_payout2020-04-18 19:55:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length86
author_reputation86,901,300,608,582
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,803,032
net_rshares0
@codingdefined ·
As always great update, this is the time we can bring back Utopian as a community on Hive
properties (22)
authorcodingdefined
permlinkq8d980
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-06 12:26:27
last_update2020-04-06 12:26:27
depth1
children0
last_payout2020-04-13 12:26:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length89
author_reputation529,116,157,271,048
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,730,467
net_rshares0
@detlev ·
$0.02
This will help to bring BEER to the BEEs
👍  
properties (23)
authordetlev
permlinkre-holger80-q8duog
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-06 20:09:54
last_update2020-04-06 20:09:54
depth1
children0
last_payout2020-04-13 20:09:54
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length40
author_reputation1,726,250,397,564,072
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,735,800
net_rshares125,054,670,394
author_curate_reward""
vote details (1)
@gadrian ·
Nice! I had 0.22.11 installed, a 50% performance improvement is great. Just installed the new version and anxious to see it in action.
properties (22)
authorgadrian
permlinkq8d9gv
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-06 12:31:42
last_update2020-04-06 12:31:42
depth1
children0
last_payout2020-04-13 12:31:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation637,882,839,331,316
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,730,508
net_rshares0
@heimindanger ·
Downvoted for contributing to criminal activities.
👎  
properties (23)
authorheimindanger
permlinkre-holger80-q8ezvm
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-07 10:59:45
last_update2020-04-07 10:59:45
depth1
children2
last_payout2020-04-14 10:59:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length50
author_reputation-16,507,408,909,111
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,742,833
net_rshares-20,479,250,183,410
author_curate_reward""
vote details (1)
@holger80 ·
$0.03
what criminal activity?
👍  , , , ,
properties (23)
authorholger80
permlinkre-heimindanger-q8f2xv
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-07 12:05:54
last_update2020-04-07 12:05:54
depth2
children0
last_payout2020-04-14 12:05:54
cashout_time1969-12-31 23:59:59
total_payout_value0.014 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length23
author_reputation358,857,509,568,825
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,743,477
net_rshares143,884,560,542
author_curate_reward""
vote details (5)
@xxxxxxxxxx ·
https://media.giphy.com/media/2rtQMJvhzOnRe/giphy.gif
properties (22)
authorxxxxxxxxxx
permlinkre-heimindanger-q8f9dv
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-07 14:25:06
last_update2020-04-07 14:25:06
depth2
children0
last_payout2020-04-14 14:25:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length53
author_reputation45,458,207,374,426
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,745,033
net_rshares0
@mahdikcw ·
is there any node.js library for steem and hive ?
properties (22)
authormahdikcw
permlinkq8fijp
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-07 17:43:03
last_update2020-04-07 17:43:03
depth1
children0
last_payout2020-04-14 17:43:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation21,357,623,887
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,747,582
net_rshares0
@mstafford ·
It seems like every time I start working on coding something up myself, you release an update to beem with everything I need.

Great news!
properties (22)
authormstafford
permlinkre-holger80-q8f9bt
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-07 14:23:57
last_update2020-04-07 14:23:57
depth1
children0
last_payout2020-04-14 14:23:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length138
author_reputation63,425,345,982,192
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,745,019
net_rshares0
@theadmiral ·
Awesome thanks! 
properties (22)
authortheadmiral
permlinkre-holger80-q8d8l2
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-06 12:12:39
last_update2020-04-06 12:12:39
depth1
children0
last_payout2020-04-13 12:12:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length16
author_reputation371,092,171,414
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,730,326
net_rshares0
@xeroc ·
$0.11
Good job on the unittesting!!
👍  
properties (23)
authorxeroc
permlinkq8fe8r
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-04-07 16:10:03
last_update2020-04-07 16:10:03
depth1
children1
last_payout2020-04-14 16:10:03
cashout_time1969-12-31 23:59:59
total_payout_value0.054 HBD
curator_payout_value0.054 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation118,819,064,085,695
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,746,420
net_rshares517,402,378,243
author_curate_reward""
vote details (1)
@holger80 ·
$0.02
Thank you and thanks a lot for your work on https://github.com/xeroc/python-graphenelib. This really helps me a lot in creating beem.
👍  , , , ,
properties (23)
authorholger80
permlinkre-xeroc-q8h460
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.03.14"}
created2020-04-08 14:27:36
last_update2020-04-08 14:27:36
depth2
children0
last_payout2020-04-15 14:27:36
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length133
author_reputation358,857,509,568,825
root_title"Update for beem: huge performance improvements and bridge API support"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,759,208
net_rshares128,394,680,448
author_curate_reward""
vote details (5)