update for beem - nodelist updated, beempy sign and broadcast improved

in #utopian-io7 years ago (edited)

Repository

https://github.com/holgern/beem


beem-logo

beem is a python library for steem. beem has now 494 unit tests and a coverage of 72 %. The current version is 0.20.16.
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

Check for ùtf-16 coding

beempy sign and beempy broadcast can now read utf-8 files which occur when using

beempy -xd -e 3600 <command> <options> > unsigned_transaction.json

on windows. It is now checked if the file contains any \0 characters. When this is the case it is loaded as utf-16 file.

        if tx.find('\0') > 0:
            with open(file, encoding='utf-16') as fp:
                tx = fp.read()

Add oufile to beempy sign

As beempy sign asks for the wallet password, a

beempy sign --file unsigned.json > signed.json

is not working properly. I added a new option --outfile which allow it to store the signed file and enter the wallet password:

beempy sign --file unsigned.json -o signed.json

Prevent that beempy sign deletes signatures

Before this commt, beempy sign was deleting already stored signatures. This prevents that more than one signing was possible.
By adding a new optionreconstruct_tx to steem.sign() which allows to set reconstruct_tx of TransactionBuilder.sign(), it is now possible to use steem.sign with stem.sign(reconstruct_tx=False) which allows to sign without deleting old signatures.

It is now possible to create a unsigned.json and let it sign by several signers.

beempy -xd -e 3600 <command> <options> > unsigned_transaction.json
beempy sign --file unsigned_transaction.json -o sign1.json
beempy sign --file sign1.json -o sign2.json

sign2.json has now the signatures from the first and the second signing.

beempy walletinfo

beempy walletinfo

works now without going offline (using -o).

Nodelist updated

Not working nodes:

were removed.

Commits

Fix beempy walletinfo and sign

Disable not working nodes and improve beempy sign and broadcast

  • commit 915107d
  • Improve file reading for beempy sign and broadcast
  • add option to write file for beempy sign

Fix unit tests

Github account

https://github.com/holgern

Sort:  

Great update as usual.

The fix for the signing lets multiple signers to sign a transaction is neat. It may have a lot of use cases.


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!

Steemitdev account recently announced get_account_votes will be deprecated. Does that mean beem's account.get_account_votes() will​ not work anymore?

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.75% 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 post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

This post has been included in today's SOS Daily News - a digest of all you need to know about the State of Steem.



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!