create account

Pywit Version 1.1.1 & Utopian-io Submission by petertag

View this thread on: hive.blogpeakd.comecency.com
· @petertag · (edited)
$44.78
Pywit Version 1.1.1 & Utopian-io Submission
I've finished a small update to [Pywit](https://github.com/gitschwifty/pywit), leading to version 1.1.1. The main parts of this update were initial release bug fixes, adding a logging output to the monitor function so the end-user can see updates, and responding to pull requests from @bobinson who's been helping me test. I've made the initial push to be PEP8 compliant in the code, as well as increasing the testing and setting it up better for future tests. I'm still figuring out how to test the input functions, but it shouldn't be long before those are covered as well. This is my initial submission of Pywit to Utopian-io, as several people commented that I should submit to them as well under the v1.0.3 release.

### Testing
![Screen Shot 2018-10-30 at 4.41.39 PM.png](https://cdn.steemitimages.com/DQmXZejtPHhFsJ8PKECEW1EwswAHPLS5DWJrS9ADACrvYnk/Screen%20Shot%202018-10-30%20at%204.41.39%20PM.png)

The main updates to Pywit today come in the form of tests! Yay! Originally using pytest, I branched out to include tox for virtual environment setup, mostly due to holgern using the same in beem, and it being rather easy to understand. Currently, only the Steem interface is tested (not the input class), as it's the easiest for initial testing with no input required from the user. Any tips on testing user input methods would be appreciated, apparently Cmd2 has some built in testing for it, but there might be issues integrating it with pytest, I haven't checked yet.

#### Thanks for the Attention!

I was surprised by how much attention v1.0.3 garnered, mostly thanks to bobinson sharing it around. I'd like to thank everybody on Steem for the attention, as I'm building this for all of you! Any tips, feature requests, or issues reported are greatly appreciated! If you appreciate this work, and want to see more, please [Vote for me as witness!](https://v2.steemconnect.com/sign/account-witness-vote?witness=petertag&approve=1)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 28 others
properties (23)
authorpetertag
permlinkpywit-version-1-1-1-and-utopian-io-submission
categoryutopian-io
json_metadata{"tags":["utopian-io","development","steem","steemit","python"],"users":["bobinson"],"image":["https://cdn.steemitimages.com/DQmXZejtPHhFsJ8PKECEW1EwswAHPLS5DWJrS9ADACrvYnk/Screen%20Shot%202018-10-30%20at%204.41.39%20PM.png"],"links":["https://github.com/gitschwifty/pywit","https://v2.steemconnect.com/sign/account-witness-vote?witness=petertag&approve=1"],"app":"steemit/0.1","format":"markdown"}
created2018-10-30 22:45:21
last_update2018-12-05 23:09:03
depth0
children8
last_payout2018-11-06 22:45:21
cashout_time1969-12-31 23:59:59
total_payout_value33.721 HBD
curator_payout_value11.061 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,943
author_reputation17,170,168,350,944
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id74,370,168
net_rshares39,398,120,292,600
author_curate_reward""
vote details (92)
@emrebeyler ·
$9.54
Hi there,

Pywit looks good.


Since you didn't share the original announcement post on Utopian, I will review the project as a whole instead of the recent updates.

- It seems pywit lacks support for ```witness_set_properties``` operation. It would be good if we have support for that. It's possible to broadcast witness updates (on witness params) by witnes' signing key. Which is useful on many cases.

- There are a couple of undefined ```self``` calls.<sup>[1](https://github.com/gitschwifty/pywit/blob/master/pywit/cli.py#L67), [2](https://github.com/gitschwifty/pywit/blob/master/pywit/cli.py#L88)</sup> causes errors on some calls. (See [an example log](https://gist.github.com/emre/374edd47f340c32c7a54d38f016c7c71))

- Regarding testing user inputs, you can have a look to one of my projects' testing file: https://github.com/emre/storm/blob/master/tests.py#L82. ```run_cmd``` and ```test_list_command``` functions may give a clue.

***

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/3222222).

---- 
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-petertag-pywit-version-1-1-1-and-utopian-io-submission-20181031t072044678z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://github.com/gitschwifty/pywit/blob/master/pywit/cli.py#L67","https://github.com/gitschwifty/pywit/blob/master/pywit/cli.py#L88","https://gist.github.com/emre/374edd47f340c32c7a54d38f016c7c71","https://github.com/emre/storm/blob/master/tests.py#L82","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/3222222","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-10-31 07:20:45
last_update2018-10-31 07:20:45
depth1
children4
last_payout2018-11-07 07:20:45
cashout_time1969-12-31 23:59:59
total_payout_value7.232 HBD
curator_payout_value2.311 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,437
author_reputation448,535,049,068,622
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,391,086
net_rshares8,372,954,789,628
author_curate_reward""
vote details (11)
@petertag ·
Great, thanks for the errors you pointed out! I saw your comment on bobinson's post about pipfiles, I was wondering the reason you're not a big fan, since I don't have an opinion one way or the other yet. I had setup.py because it was easy to setup and figure out, basically for a quickstart, wasn't sure what the differences were when I was choosing one to use.
properties (22)
authorpetertag
permlinkre-emrebeyler-re-petertag-pywit-version-1-1-1-and-utopian-io-submission-20181031t200811101z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-10-31 20:07:42
last_update2018-10-31 20:07:42
depth2
children0
last_payout2018-11-07 20:07:42
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_length362
author_reputation17,170,168,350,944
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,430,681
net_rshares0
@petertag ·
Hey again, do you have any docs on the witness_set_properties using the witness's public signing key?  So far I don't think beempy supports it, but I could look into setting up a workaround in pywit. Or is it just with the private signing key that you mean?
properties (22)
authorpetertag
permlinkre-emrebeyler-re-petertag-pywit-version-1-1-1-and-utopian-io-submission-20181031t205624956z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-10-31 20:55:57
last_update2018-10-31 20:55:57
depth2
children1
last_payout2018-11-07 20:55: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_length257
author_reputation17,170,168,350,944
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,433,309
net_rshares0
@emrebeyler ·
You can sign with the private signing key. (witness key)

Check [here](https://github.com/emre/transmitter/blob/master/transmitter/main.py#L134) for an example for  witness_set_properties.
properties (22)
authoremrebeyler
permlinkre-petertag-re-emrebeyler-re-petertag-pywit-version-1-1-1-and-utopian-io-submission-20181101t083703497z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://github.com/emre/transmitter/blob/master/transmitter/main.py#L134"],"app":"steemit/0.1"}
created2018-11-01 08:37:03
last_update2018-11-01 08:37:03
depth3
children0
last_payout2018-11-08 08:37:03
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_length188
author_reputation448,535,049,068,622
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,462,365
net_rshares0
@utopian-io ·
Thank you for your review, @emrebeyler! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-petertag-pywit-version-1-1-1-and-utopian-io-submission-20181031t072044678z-20181103t010922z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-03 01:09:24
last_update2018-11-03 01:09:24
depth2
children0
last_payout2018-11-10 01:09: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"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,574,130
net_rshares0
@microbot ·
This post has been upvoted for free by @microbot with 0.1%! 
 Get better upvotes by bidding on me.
More profits? 100% Payout! Delegate some SteemPower to @microbot:  [1 SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=microbot&vesting_shares=2049%20VESTS), [5 SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=microbot&vesting_shares=10245%20VESTS), [10 SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=microbot&vesting_shares=20489%20VESTS), [custom amount](https://steembottracker.com/delegation.html)
You like to bet and win 20x your bid? Have a look at @gtw and [this description](https://steemit.com/guessthewitness/@isnochys/guess-the-witness-steemdice-for-witnesses)!
properties (22)
authormicrobot
permlinkre-pywit-version-1-1-1-and-utopian-io-submission-20181030t224640
categoryutopian-io
json_metadata""
created2018-10-30 22:46:42
last_update2018-10-30 22:46:42
depth1
children0
last_payout2018-11-06 22:46:42
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_length766
author_reputation218,948,387,191
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,370,237
net_rshares0
@steem-ua ·
#### Hi @petertag!

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](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-pywit-version-1-1-1-and-utopian-io-submission-20181031t072447z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-10-31 07:24:48
last_update2018-10-31 07:24:48
depth1
children0
last_payout2018-11-07 07:24: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_length287
author_reputation23,214,230,978,060
root_title"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,391,277
net_rshares0
@utopian-io ·
Hey, @petertag!

**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-pywit-version-1-1-1-and-utopian-io-submission-20181103t230828z
categoryutopian-io
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-03 23:08:30
last_update2018-11-03 23:08:30
depth1
children0
last_payout2018-11-10 23:08:30
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"Pywit Version 1.1.1 & Utopian-io Submission"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,628,399
net_rshares0