update for beem - beempy post improved and imageuploader added

in #utopian-io7 years ago (edited)

Repository

https://github.com/holgern/beem


beem-logo

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_tagsdetects 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 uploadimageadded

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 -aspecify 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

VotedBeforeWaitTimeReached exception added for "Can only vote once every 3 seconds"

Fix issue #126

Improved key handling fixes issue #125

derive_beneficiaries, derive_tags and seperate_yaml_dict_from_body added to utils

Fix claimaccount and improve post commands for beempy

Release 0.20.12

  • commit 49a8db8
  • 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

Sort:  

Great updates as usual.

Regarding re.search usage here, 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, 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.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @emrebeyler! Keep up the good work!

This post has been just added as new item to timeline of beem on Steem Projects.

If you want to be notified about new updates from this project, register on Steem Projects and add beem to your favorite projects.

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 to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

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

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 or Steeditor).

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

Vote for Utopian Witness!