create account

update for beem - beempy post improved and imageuploader added by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$59.10
update for beem - beempy post improved and imageuploader added
#### 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. beem has now 506 unit tests and a coverage of 72 %. The current version is 0.20.13.
I created a discord channel for answering a question or discussing beem: https://discord.gg/4HM592V
The newest beem version can be installed by:

```
pip install -U beem
```
or when  using conda:
```
conda install beem
```
beem can be updated by:
```
conda update beem
```

### New Features

### `beempy post` improved

Utility functions `derive_beneficiaries`, `derive_tags` and `seperate_yaml_dict_from_body` are added to utils.py and unit tests are added for each function. The yaml dection was improved, it is now possible to use `---` everywhere in the document. `derive_tags`detects now tags correctly:

* a,b

* a, b

* a b

  are detected as `tags = ['a', 'b'].`

  The yaml-parameter  `percent-steem-dollars` and `max-accepted-payout` were added.

  100 SP payout is:

  ```
  percent-steem-dollars: 0
  ```

  50/50 payout is:

  ```
  percent-steem-dollars: 10000
  ```


### Too Many Requests error handled in graphenerpc

This server error lead before to a unhandled rpc exception (The problem occurred in whaleshares). With the changes, the error is now handled and the failed rpc call is automatically retried.

### `beempy uploadimage`added

It is now possible to upload images with ´beempy´ to steemitimages.

```
 beempy uploadimage -a holger80 -n beem-logo beem.png
```

When successfully uploaded, a markdown code for embedding the image is returned:

```
![beem-logo](https://cdn.steemitimages.com/DQmcRrwLPSywSYMierfP6um6mejeMNGjN9Rxw7audJqTDgb/beem-logo)
```

`-n` specify a image name (optional) and `-a`specify the account name which is used for uploading. An account must be specified and the posting key of this account must be available in the wallet.

### Issue #125 fixed

The prefix of the pubkey is now checked. It is now possible to store different keys from different chains  for the same account in the wallet. `beempy listaccounts` and `beempy listkeys` returns only the keys and accounts for the current chain, which is set by `beempy set nodes`  . The default chain is steem.

### VotedBeforeWaitTimeReached exception added

When voting twice within 3 seconds, an error with `Can only vote once every 3 seconds is returned.`

This raises now to an exception VotedBeforeWaitTimeReached.



### Commit history

#### Add uploadimage to beempy

* [commit 96e98c3](https://github.com/holgern/beem/commit/96e98c3a9c795183f587612ace1a3b481735fe68))

#### VotedBeforeWaitTimeReached exception added for "Can only vote once every 3 seconds"
* [commit 9c7594e](https://github.com/holgern/beem/commit/9c7594ef3bf0b6d64e4da3c4667146bbd5df9157)
#### Fix issue #126
* [commit e92cdf4](https://github.com/holgern/beem/commit/e92cdf464b6562b2f4924d280cbb01a0aede3b3e)
#### Improved key handling fixes issue #125 
* [commit 355042e](https://github.com/holgern/beem/commit/355042e568191df3fbfa956b840ea1a10b9b66b6)
* prefix is checked in getPublicKeys
#### derive_beneficiaries, derive_tags and seperate_yaml_dict_from_body added to utils
* [commit 5b17c5e](https://github.com/holgern/beem/commit/5b17c5e49b32671b2d1077803ece671a54f8dee4)
* unit tests added for all new functions
#### Fix claimaccount and improve post commands for beempy
* [commit d2cefde](https://github.com/holgern/beem/commit/d2cefdeae3e776be746962894cd8d63bc5d7324a)
#### Release 0.20.12
* [commit 49a8db8](https://github.com/holgern/beem/commit/49a8db878bff1a503b2e9acc9cd38f337efe9ba5)
* pep8 formating improved
* Too Many Requests error handled
* different limit handling in WLS fixed for account history
* percent-steem-dollars and max-accepted-payout added to beempy post
### Github account
https://github.com/holgern
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 84 others
properties (23)
authorholger80
permlinkupdate-for-beem---beempy-post-improved-and-imageuploader-added
categoryutopian-io
json_metadata"{"app": "beempy/0.23.10", "links": ["https://github.com/holgern/beem", "https://discord.gg/4HM592V", "https://github.com/holgern/beem/commit/96e98c3a9c795183f587612ace1a3b481735fe68", "https://github.com/holgern/beem/commit/9c7594ef3bf0b6d64e4da3c4667146bbd5df9157", "https://github.com/holgern/beem/commit/e92cdf464b6562b2f4924d280cbb01a0aede3b3e", "https://github.com/holgern/beem/commit/355042e568191df3fbfa956b840ea1a10b9b66b6", "https://github.com/holgern/beem/commit/5b17c5e49b32671b2d1077803ece671a54f8dee4", "https://github.com/holgern/beem/commit/d2cefdeae3e776be746962894cd8d63bc5d7324a", "https://github.com/holgern/beem/commit/49a8db878bff1a503b2e9acc9cd38f337efe9ba5", "https://github.com/holgern"], "tags": ["utopian-io", "development", "beem", "steemtank", "python"], "image": ["https://cdn.steemitimages.com/DQmcRrwLPSywSYMierfP6um6mejeMNGjN9Rxw7audJqTDgb/beem-logo"], "format": "markdown", "canonical_url": "https://hive.blog/utopian-io/@holger80/update-for-beem---beempy-post-improved-and-imageuploader-added"}"
created2018-11-25 21:35:27
last_update2020-05-23 14:43:30
depth0
children6
last_payout2018-12-02 21:35:27
cashout_time1969-12-31 23:59:59
total_payout_value45.021 HBD
curator_payout_value14.076 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,939
author_reputation358,857,509,568,825
root_title"update for beem - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,901,142
net_rshares95,705,749,985,409
author_curate_reward""
vote details (148)
@emrebeyler ·
$10.13
Great updates as usual.

Regarding ```re.search``` usage [here](https://github.com/holgern/beem/commit/9c7594ef3bf0b6d64e4da3c4667146bbd5df9157#diff-5853fe4b8bf2f7fb62f120020b515f17R143), isn't it possible to do same thing with a simple ```in``` condition? I expect regex patterns when I see *re*. :)

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2222222).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , ,
properties (23)
authoremrebeyler
permlinkre-holger80-update-for-beem---beempy-post-improved-and-imageuploader-added-20181127t074814832z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://github.com/holgern/beem/commit/9c7594ef3bf0b6d64e4da3c4667146bbd5df9157#diff-5853fe4b8bf2f7fb62f120020b515f17R143","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2222222","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-11-27 07:48:15
last_update2018-11-27 07:48:15
depth1
children1
last_payout2018-12-04 07:48:15
cashout_time1969-12-31 23:59:59
total_payout_value7.661 HBD
curator_payout_value2.471 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length791
author_reputation448,535,049,068,622
root_title"update for beem - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,976,653
net_rshares16,484,796,719,368
author_curate_reward""
vote details (10)
@utopian-io ·
Thank you for your review, @emrebeyler! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-holger80-update-for-beem---beempy-post-improved-and-imageuploader-added-20181127t074814832z-20181129t204023z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-29 20:40:24
last_update2018-11-29 20:40:24
depth2
children0
last_payout2018-12-06 20:40: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_length62
author_reputation152,955,367,999,756
root_title"update for beem - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id76,114,681
net_rshares0
@steem-plus ·
SteemPlus upvote
Hi, @holger80!

You just got a **2.43%** 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---beempy-post-improved-and-imageuploader-added---vote-steemplus
categoryutopian-io
json_metadata{}
created2018-11-26 01:13:21
last_update2018-11-26 01:13:21
depth1
children0
last_payout2018-12-03 01:13:21
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 - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,908,254
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.250 which ranks you at **#68** across all Steem accounts.
Your rank has improved 1 places in the last three days (old rank 69).

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

* Your follower network is great!
* The readers appreciate your great work!
* Good user engagement!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-update-for-beem---beempy-post-improved-and-imageuploader-added-20181126t153403z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-26 15:34:06
last_update2018-11-26 15:34:06
depth1
children0
last_payout2018-12-03 15:34: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_length615
author_reputation23,214,230,978,060
root_title"update for beem - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,940,531
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---beempy-post-improved-and-imageuploader-added-20181125t214818
categoryutopian-io
json_metadata""
created2018-11-25 21:48:18
last_update2018-11-25 21:48:18
depth1
children0
last_payout2018-12-02 21:48:18
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 - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,901,619
net_rshares0
@utopian-io ·
Hey, @holger80!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-update-for-beem---beempy-post-improved-and-imageuploader-added-20181127t115211z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-27 11:52:12
last_update2018-11-27 11:52:12
depth1
children0
last_payout2018-12-04 11:52:12
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_length590
author_reputation152,955,367,999,756
root_title"update for beem - beempy post improved and imageuploader added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,984,181
net_rshares0