New release - utopian-cli 0.5.2

in #utopian-io7 years ago (edited)

terminal.png

Last week I released utopian-cli 0.4.2, and now I'm back again with the new and improved utopian-cli 0.5.2. I've added quite a lot of features in this update, so I will try and condense it as much as possible and give an overview of everything below! Use the following command to upgrade if you have already installed it

pip install utopian --upgrade

otherwise use the command to install it

pip install utopian

Features overview

The commands "contributions", "moderators", "sponsors" and "performance" have all received some form of an update. I've also fixed some bugs, but they were all caused by me, so they don't count haha. I will give an overview of the added/changed/updated commands in a table below each command and also describe what it does or what has changed.

You can also check out the usage of all commands in the README.

Improved features

Contributions
OptionDescription
--reviewed/--unreviewedI have removed this, since it was made redundant by the new --filter_by option
-f, --filter_byAllows the user to filter contributions by all, review, active and inactive
-st, --statusAllows the user to filter contributions by its status any, pending and reviewed
-si, --similarityAllows the user to search for similar contributions using the bySimilarity query

As you can see all the new options are used for filtering contributions, just like you would do on Utopian.io.

image.png

Moderators

I've also changed some options for the moderators command. I will give an overview of the added/changed commands in the table below and give each a short description

OptionDescription
-s, --supervisorFlag for only showing supervisors. This already existed, but -s makes it a lot easier to use!
-m, --moderatorFlag for only showing moderators. Works the same as the --supervisor option
--dataShows moderators/supervisors in JSON format. This is just the renamed --j option.
-a, --accountAllows the user to specify specific accounts. Now also supports multiple accounts just like the other commands.
-s, --sortAllows the user to sort the table of moderators/supervisors by id, moderator, referrer, reviewed and rewards.

Moderators are now also printed in a pretty table, just like the "performance" and "project" commands.

image.png

Sponsors
OptionDescription
--dataShows moderators/supervisors in JSON format. This is just the renamed --j option.
-a, --accountAllows the user to specify specific accounts. Now also supports multiple accounts just like the other commands.
--witnessOnly shows sponsors that are witnesses.
--not-witnessOnly shows sponsors that aren't witnesses.
-s, --sortAllows the user to sort the table of sponsors by id, sponsor, witness, percentage and shares.

Sponsors are now also printed in a pretty table, just like the "performance" and "project" commands.

image.png

Performance
OptionDescription
-i, --individualWhen a user wants to see the performance of multiple accounts they can use this flag to print each user's individual performance instead of their collective performance. This is useful for printing an overview of a supervisor's team, for example.

image.png

I also realised (thanks to @zonguin) that when it was checking a moderator's performance, it would look at the date the contribution was created instead of when the moderator actually reviewed the contribution. Because of this, if a moderator reviewed a post today, but the post was submitted last week, then it wouldn't count towards their peformance of the last day. This is now fixed!

How to contribute?

  1. Fork the repository
  2. Create a feature branch with git checkout -b your-feature
  3. Code and document your feature
  4. Commit your changes with git commit -m "add my features"
  5. Push to your branch with git push origin your-feature
  6. Create a new pull request

Anything you can add to the project is valuable to me, be it bug reports, suggestions etc. so please don't hesitate!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You bring great contributions but it would be really appreciated if you put in more work into one contribution as right now we dont have quality slider present. I appreciate your work. Keep contributing. :)

You can contact us on Discord.

[utopian-moderator]

Will do!

@amosbastian, No matter approved or not, I upvote and support you.

Hey @amosbastian I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Looks like a good thing. Hopefully useful for someone like me.

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 75847.70
ETH 2878.96
USDT 1.00
SBD 2.57