Update for beem - all broadcast operation are now supported and beempy curation improved

in #utopian-io7 years ago (edited)

Repository

<p dir="auto"><span><a href="https://github.com/holgern/beem" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/holgern/beem <p dir="auto"><center><img src="https://images.hive.blog/768x0/https://cdn.utopian.io/posts/d563a408c062506aed88befbe7781399184fbeem-logo.png" alt="beem-logo.png" srcset="https://images.hive.blog/768x0/https://cdn.utopian.io/posts/d563a408c062506aed88befbe7781399184fbeem-logo.png 1x, https://images.hive.blog/1536x0/https://cdn.utopian.io/posts/d563a408c062506aed88befbe7781399184fbeem-logo.png 2x" /><br /> <p dir="auto"><a href="https://github.com/holgern/beem" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">beem is a python library for steem. beem has now 477 unit tests and a coverage of 81 %. The current version is 0.19.32. <p dir="auto"><span>I created a discord channel for answering a question or discussing beem: <a href="https://discord.gg/4HM592V" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://discord.gg/4HM592V <h3>New Features <h4>Missing broadcast operation were added <ul> <li>Account_witness_proxy added <li>Custom added <li>Custom_binary added <li>Prove_authority added <li>Limit_order_create2 added <li>Request_account_recovery added <li>Recover_account added <li>Escrow_transfer added <li>Escrow_dispute added <li>Escrow_release added <li>Escrow_approve added <li>Decline_voting_rights added <h4>active key permission can be used for posting operation <p dir="auto">When no posting key is found, an active key is used instead for signing posting operation (e.g. voting).<br /> When no key could be found, MissingKeyError is now always raised when a transaction should be signed. <h4>refactoring of beem <ul> <li>beemgrapheneapi is depreated and all python files are moved to beemapi <li>GrapheneRPC uses now a Nodes class instead of cycle([urls]) <li>get_nodes_list is removed from beem.utils and available in beem.nodelist. <h4>get_replies added to Comment class <pre><code>from beem.comment import Comment c =Comment("@utopian-io/people-of-utopian-2-nepeta") replies = c.get_replies() <h4>Keys for accounts with more than one key can be obtained <ul> <li>getKeysForAccount added <li>getOwnerKeysForAccount, getActiveKeysForAccount, getPostingKeysForAccount added <h4>beempy curation improved <p dir="auto"><center><br /> <img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmUCy4RsViUs63smw1NqqmSCJSbSxFSFuW2cKiqCsMy2UV" alt="image.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmUCy4RsViUs63smw1NqqmSCJSbSxFSFuW2cKiqCsMy2UV 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmUCy4RsViUs63smw1NqqmSCJSbSxFSFuW2cKiqCsMy2UV 2x" /><br /> <br /> Besides the curation of a single post, the complete curation history of the last <code>d (default is 7) days can be displayed. The curation command shows all votes from now on and goes backward. The first 7 days are pending rewards and then paid curation rewards are shown, when <code>-d is set to a number higher than 7.<br /> E.g. <pre><code>beempy curation -a holger80 -v 0.5 -x 100 -s <p dir="auto">shows the curation of the last 7 days for votes higher than 0.5 SBD and with a performance better than 100 %. <code>-s supresses the summery:<br /> <img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmTtTiE2MXNzj62dFd2VeqUuDGuDBQsyuU6gFogKBMGHvd" alt="image.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmTtTiE2MXNzj62dFd2VeqUuDGuDBQsyuU6gFogKBMGHvd 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmTtTiE2MXNzj62dFd2VeqUuDGuDBQsyuU6gFogKBMGHvd 2x" /><br /> There are two votes with a performance better than 100%.<br /> Without <code>-s:<br /> <img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmdTLegAF6Yim3TXi2c7jVqRy8teYeixm1um2Bmku8MTQL" alt="image.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmdTLegAF6Yim3TXi2c7jVqRy8teYeixm1um2Bmku8MTQL 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmdTLegAF6Yim3TXi2c7jVqRy8teYeixm1um2Bmku8MTQL 2x" /><br /> The highest vote and the vote with the highest curation performance are addionally shown for each post. The sum shows the resulting sum of all votes. The performance is in this case the curation percentage (maximum value is 25 %). <p dir="auto">It possible to analyze a post by taking the id which is shown by the author name (<code>ihtiht/logo-design-contribution-for-gplanner can also be used instead of <code>24) :<br /> <img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmWqHDsNcxJb3d2kFqgCHPQBK4sumTesatXu872rM1a3g5" alt="image.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmWqHDsNcxJb3d2kFqgCHPQBK4sumTesatXu872rM1a3g5 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmWqHDsNcxJb3d2kFqgCHPQBK4sumTesatXu872rM1a3g5 2x" /> <ul> <li><code>-e curation.html exports the result as html file <li><code>-p shows the permlink <li><code>-t shows the title <h4> <h3>Commit history <h4>Add missing operations with unit tests <ul> <li><a href="https://github.com/holgern/beem/commit/17679d6b128c2504a78e310ef32039e62df5ca92" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 17679d6 <h4>beembase\objects <ul> <li>Amount improve handling of new appbase Amount format <h4>beembase\operations <ul> <li>missing broadcast operation were added <h4>Unit tests <ul> <li>add test_order_create2, test_witness_proxy, test_custom, test_request_account_recovery, test_recover_account, test_escrow_transfer, test_escrow_dispute, test_escrow_release, test_escrow_approve, test_decline_voting_rights, test_delegate_vesting_shares, test_account_create_with_delegation added <h4>Comment: get_replies added, get_curation_penalty improved and get_rewards fixed <ul> <li><a href="https://github.com/holgern/beem/commit/25ce837358b65970417edcb3dac71cd720e9d3ca" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 25ce837 <h4>beemgrapheneapi is deprecated, all classes and functions are available under beemapi <ul> <li><a href="https://github.com/holgern/beem/commit/951d83220a4aa00d0de69be4b13bae90ef34929a" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 951d832 <h4>Fix remaining references to beemgrapheneapi and fix not working wss:/testnet.steem.vc <ul> <li><a href="https://github.com/holgern/beem/commit/0c0fbf2c321810433c3a377fe1dab0b5d24b0341" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 0c0fbf2 <h4>common steem constants added and used in account, comment and steem <ul> <li><a href="https://github.com/holgern/beem/commit/bac8b3c4e7bbb592616614dd01ff3f6a276d1c42" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit bac8b3c <h4>Add unit test for constants <ul> <li><a href="https://github.com/holgern/beem/commit/9199f83505e90559b53682debd0efe1e6fab7505" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 9199f83 <h4>Add export option for curation and votes <ul> <li><a href="https://github.com/holgern/beem/commit/1b7ab8c76bc055df883917e0d43c183847df1b42" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 1b7ab8c <h5>CLI <ul> <li>speed up votes and added export to text file <li>curation can be used to export all pending curation rewards of one account <h4>New nodes class for better node url handling <ul> <li><a href="https://github.com/holgern/beem/commit/a261c53ed744ca91124e5d6d0f5cc5d198843578" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit a261c53 <h5>Wallet <ul> <li>getKeysForAccount added <li>getOwnerKeysForAccount, getActiveKeysForAccount, getPostingKeysForAccount added <h5>beemapi <ul> <li>WorkingNodeMissing is raised when no working node could be found <h5>GrapheneRPC <ul> <li>cycle([urls]) is replaced by the nodes class <h5>Nodes <ul> <li>Node handling and management of url and error_counts is performed by the nodes class <li>sleep_and_check_retries is moved to the nodes class <li>Websocket, steemnodrpc were adpapted to the changes <h5>Unit tests <ul> <li>new tests for the nodes class <li>tests adapted for websocket and rpcutils <h4>NodeList class added for better nodelist handling <ul> <li><a href="https://github.com/holgern/beem/commit/223ac872ae4bb57f2da737bfd57a25cd0260dd66" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 223ac87 <h5>NodeList <ul> <li>replaces get_node_list from utils.py <li>is a list and contains all nodes as dict <li>get_nodes() returns the url in a list <h5>Utils <ul> <li>get_node_list removed <h5>Unit Tests and Examples adapted to the changes <h4>Several improvements <ul> <li><a href="https://github.com/holgern/beem/commit/818c8f1b54d159889e1c0bd0ffe39fa1c1680855" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit <h5>Account <ul> <li>datetime.date is also supported <h5>CLI <ul> <li>curation improved <h5>Comment <ul> <li>doc improved <h5>Transactionbuilder <ul> <li>doc fixed <li>owner key is used, when provided and when no other permission is given <h5>utils <ul> <li>datetime.date supported <h5>Wallet <ul> <li>raise MissingKeyError when a wrong key is given by Steem(keys=[]) <h5>Unit tests <ul> <li>several unit tests has to be changed as now it is really tested if a given wif belongs to the account or not. <h4>If keys are empty try with next higher permission <ul> <li><a href="https://github.com/holgern/beem/commit/56faf8c42a2093bfeeb7e9fcd4f0973568c8be63" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 56faf8c <h4>Fix flake8 and add unit tests for permission downgrade <ul> <li><a href="https://github.com/holgern/beem/commit/b66d97fc861624976e4d76fc4e290fa2e608d6d3" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit b66d97f <h4>Fix and improve curation even more <ul> <li><a href="https://github.com/holgern/beem/commit/122e2348a79249b98e481fb2120d12dead561628" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 122e234 <h4>GitHub Account <p dir="auto"><span><a href="https://github.com/holgern" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/holgern
Sort:  

Good to see projects having code coverage greater than %80. :) I will leave my comfort zone and will give Beem a try for my next Steem related project.

Keep up the good work! :)

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.



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

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.


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

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

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

Vote for Utopian Witness!