create account

update for beem: first release for HF 21 by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$24.54
update for beem: first release for HF 21
## 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.  The current version is 0.21.1.

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

The newest beem version can be installed by:
```
pip install -U beem
```

## Changelog

```
0.21.1
------
* Fix non ascii text handling on some nodes
* Add STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF21 constant
* Fix get_curation_rewards

0.21.0
------
* First release for HF21
* get_downvoting_power added to account
* get_downvote_manabar added to account
* add options use_tags_api to use database api to get comments
* fix get_similar_account_names
* add more try expect to fail back to condenser api
* operations for account_update2, create_proposal, update_proposal_votes and remove_proposal were added
* update_proposal_votes was added to steem
* update_account_jsonmetadata was added to account
* new beempy delete were added
```
## Get content without using the tags api
At the moment most nodes have disabled the tags api. I added a new parameter, so that it is still possible to receive comments.

```
from beem import Steem
from beem.comment import Comment
stm = Steem(node="https://api.steemit.com")
c = Comment("@holger80/bumpy-start-with-hf-21-scotbot-is-running", steem_instance=stm)
set_full = set(list((c.keys())))
c = Comment("@holger80/bumpy-start-with-hf-21-scotbot-is-running", use_tags_api=False, steem_instance=stm)
set_lite = set(list((c.keys())))
print(set_full - set_lite)
print(set_lite - set_full)
```
Which shows the missing fields, when not using the tags_api:
```
{'active_votes',
 'author_reputation',
 'body_length',
 'pending_payout_value',
 'post_id',
 'promoted',
 'replies',
 'root_title',
 'url'}
```
and the added fields:
```
{'abs_rshares',
 'active',
 'allow_curation_rewards',
 'allow_replies',
 'allow_votes',
 'author_rewards',
 'children_abs_rshares',
 'max_cashout_time',
 'net_votes',
 'reward_weight',
 'root_author',
 'root_permlink',
 'total_vote_weight',
 'vote_rshares'}
```

`use_tags_api=False` can be used when the active votes of the post are not needed.

## json-parsing was fixed
```
from beem import Steem
stm  = Steem("https://anyx.io")
from beem.block import Block
b = Block(35097419, steem_instance=stm)
print(b.operations[-22]["value"]["title"])
```
returns now the correct utf-8 string:
<스파이더맨 : 파 프롬 홈> 블루엔젤 니어 프롬 (퓨처) 홈 💙

## Downvote manabar
```
from beem.account import Account
acc = Account("holger80")
print(acc.get_downvote_manabar())
```
returns
```
{'last_mana': 30121812653872, 'last_update_time': 1567022076, 'current_mana': 30429666853775, 'max_mana': 32442250357182.0, 'current_mana_pct': 93.79641214388982}
```

## New proposal operation
The new proposal operation were added as operation, so far only `update_proposal_votes` was added as function to steem:
```
from beem import Steem
stm = Steem()
stm.wallet.unlock("...")
stm.update_proposal_votes([0], True, account="holger80")
```

## Outlook
The following things are on my todo list:
* add the other proposal operations
* fix get_replies
* fix curation rewards calculations
* add functions to show information about proposals
* add proposal to beempy
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 254 others
properties (23)
authorholger80
permlinkupdate-for-beem-first-release-for-hf-21
categorybeem
json_metadata"{"tags": ["beem", "python", "steemdev", "development", "palnet", "neoxian", "stem"], "image": ["https://cdn.steemitimages.com/DQmcRrwLPSywSYMierfP6um6mejeMNGjN9Rxw7audJqTDgb/beem-logo"], "links": ["https://github.com/holgern/beem", "https://discord.gg/4HM592V"], "app": "beempy/0.23.10", "format": "markdown", "canonical_url": "https://hive.blog/beem/@holger80/update-for-beem-first-release-for-hf-21"}"
created2019-08-28 22:14:12
last_update2020-05-23 14:23:36
depth0
children9
last_payout2019-09-04 22:14:12
cashout_time1969-12-31 23:59:59
total_payout_value13.555 HBD
curator_payout_value10.985 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,320
author_reputation358,857,509,568,825
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,050,488
net_rshares71,734,497,372,383
author_curate_reward""
vote details (318)
@amico ·
___
#### <center> Everything is okay! 👌 </center> 
___
Dear @holger80,
you received an automatic upvote, because I believe in you and I love what you create! 😉

A huge hug from @amico! 🤗

<sup><sup><sup><sup> !trdo & !giphy okay </sup></sup></sup></sup>
___

<center> If you dislike this automatic message, please let me know: thanks! 🙏</center> 
👍  ,
properties (23)
authoramico
permlinkre-update-for-beem-first-release-for-hf-21-20190828t222037z
categorybeem
json_metadata"{"app": "rewarding/0.1.5"}"
created2019-08-28 22:20:45
last_update2019-08-28 22:20:45
depth1
children2
last_payout2019-09-04 22:20: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_length357
author_reputation51,076,240,298,517
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,050,615
net_rshares57,966,544,269
author_curate_reward""
vote details (2)
@giphy ·
<img src="https://media3.giphy.com/media/kRXnZwKrPTwVq/giphy.gif?cid=0aaf8a74eb8cc5dc84591da916f8733dd09eaaddb990c489&rid=giphy.gif" /><br><a href="https://giphy.com/gifs/ok-wink-kRXnZwKrPTwVq"><img src="https://files.steempeak.com/file/steempeak/echobourdon/SCyDAmrs-PoweredBy_200px-White_HorizLogo.png" /></a><br>// You can support giphy by using one of your witness votes on <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=untersatz&approve=1">untersatz</a>! //
👍  
properties (23)
authorgiphy
permlink8mnefjh6xj6
categorybeem
json_metadata""
created2019-08-28 22:20:57
last_update2019-08-28 22:20:57
depth2
children0
last_payout2019-09-04 22:20: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_length487
author_reputation1,297,028,681,726
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,050,620
net_rshares0
author_curate_reward""
vote details (1)
@trendotoken ·
Congratulations @amico, you are successfuly trended the post that shared by @holger80!
@holger80 got 6 [TRDO](https://steem-engine.com/?p=history&t=TRDO) & @amico got 4 [TRDO](https://steem-engine.com/?p=history&t=TRDO)! 

<b>"Call [TRDO](https://steem-engine.com/?p=history&t=TRDO), Your Comment Worth Something!"</b>
---
<sup>To view or trade TRDO go to [steem-engine.com](https://steem-engine.com/?p=market&t=TRDO)
Join [TRDO Discord Channel](https://discord.gg/wySP8T9) or Join [TRDO Web Site](http://www.trendotoken.info/)</sup>
properties (22)
authortrendotoken
permlinkre-amico-re-update-for-beem-first-release-for-hf-21-20190828t222037z-20190829t044123317z
categorybeem
json_metadata{"tags":["comments-scot","trendo-bot"],"app":"comments-scot/1.1","format":"markdown"}
created2019-08-29 04:41:24
last_update2019-08-29 04:41:24
depth2
children0
last_payout2019-09-05 04:41: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_length533
author_reputation5,546,209,053,433
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,058,650
net_rshares0
@mstafford ·
Nice work, as always! Beem is so beneficial to a lot of projects out here. Great work.
properties (22)
authormstafford
permlinkre-holger80-px0czr
categorybeem
json_metadata{"tags":["beem"],"app":"steempeak/1.15.0"}
created2019-08-29 17:09:27
last_update2019-08-29 17:09:27
depth1
children0
last_payout2019-09-05 17:09: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_length86
author_reputation63,425,345,982,192
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,079,564
net_rshares0
@partiko ·
Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!
properties (22)
authorpartiko
permlinkre-update-for-beem-first-release-for-hf-21-20190829t133021
categorybeem
json_metadata"{"app": "partiko"}"
created2019-08-29 13:30:24
last_update2019-08-29 13:30:24
depth1
children0
last_payout2019-09-05 13:30: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_length213
author_reputation39,207,160,334,751
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,070,629
net_rshares0
@steem-plus ·
SteemPlus upvote
Hi, @holger80!

You just got a **4.18%** 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.
properties (22)
authorsteem-plus
permlinkupdate-for-beem-first-release-for-hf-21---vote-steemplus
categorybeem
json_metadata{}
created2019-08-29 14:09:39
last_update2019-08-29 14:09:39
depth1
children0
last_payout2019-09-05 14:09: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_length435
author_reputation247,952,188,232,400
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,072,310
net_rshares0
@steem-ua ·
#### Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 7.611 which ranks you at **#49** across all Steem accounts.
Your rank has not changed in the last three days.

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

* Your follower network is great!
* Try to show your post to more followers, for example via networking on our discord!
* Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-update-for-beem-first-release-for-hf-21-20190829t113246z
categorybeem
json_metadata"{"app": "beem/0.21.0"}"
created2019-08-29 11:32:48
last_update2019-08-29 11:32:48
depth1
children0
last_payout2019-09-05 11:32:48
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_length734
author_reputation23,214,230,978,060
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,067,658
net_rshares0
@steemprojects ·
This post has been just added as new item to _[timeline of beem on Steem Projects](https://steemprojects.com/projects/p/beem/?utm_source=comment_timeline&utm_medium=steem&utm_campaign=new_event&utm_content=c1)_.

If you want to be notified about new updates from this project, register on Steem Projects and add beem to your favorite projects.
properties (22)
authorsteemprojects
permlinkre-update-for-beem-first-release-for-hf-21-20190828t234138
categorybeem
json_metadata""
created2019-08-28 23:41:39
last_update2019-08-28 23:41:39
depth1
children0
last_payout2019-09-04 23:41: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_length345
author_reputation29,054,729,340
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,052,501
net_rshares0
@toofasteddie ·
Hi @holger80 , I am curious to know if you are planning to re-lauch beempy as well. Do you have any new about it?
properties (22)
authortoofasteddie
permlinkpx28xc
categorybeem
json_metadata{"tags":["beem"],"users":["holger80"],"app":"steemit/0.1"}
created2019-08-30 17:36:48
last_update2019-08-30 17:36:48
depth1
children0
last_payout2019-09-06 17:36:48
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_length113
author_reputation670,098,609,022,646
root_title"update for beem: first release for HF 21"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,115,332
net_rshares0