Suggestion: Add has_muted, is_muted_by, mute, unmute methods in Steem Python Library

in #utopian-io7 years ago (edited)

I have been studying the official Steem Python library at https://github.com/steemit/steem-python and IMHO it lacks of checking if any given ID is muted by the Account. Simply put, the has_muted is useful in checking if current account has muted a given ID, and unmute will simply unmute the ID. These two can be described by the following:

id = Account("justyy")
if id.has_muted("someone"):
   id.unmute("someone")

Similarly, is_muted_by checks the other way around and mute will mute the given ID:

id = Account("justyy")
if id.is_muted_by("someone"):
    id.mute("someone")

These four methods should be a great add-on features to the steem python library!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the code.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

就不能加两行中文吗?!

utopian 除了tutorial 只能是英文的。。。。

这样呀,原来是这样,唉英语不好表示闹心死了

是啊,我们都看不懂,老想看。

这文 是专门写给utopian的,主要是建议给 steem python 库加上几个方法。

看不懂,过来看热闹

你真是卖鱼的么?

全称是"年近30依然过得不如楼下卖鱼的"

哈哈哈。

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

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

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

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.029
BTC 68029.30
ETH 3272.63
USDT 1.00
SBD 2.64