Уважаемые пользователи Голос!
Сайт доступен в режиме «чтение» до сентября 2020 года. Операции с токенами Golos, Cyber можно проводить, используя альтернативные клиенты или через эксплорер Cyberway. Подробности здесь: https://golos.io/@goloscore/operacii-s-tokenami-golos-cyber-1594822432061
С уважением, команда “Голос”
GOLOS
RU
EN
UA
kiwi
8 лет назад

[ANN] Мегафон/Megaphone - Python Command Line Tools for GOLOS / делегат "kiwi"

Мегафон/Megaphone

As mentioned last week, I forked Steemtools after asking the author (@furion) for the permission:

https://github.com/Netherdrake/steemtools/issues/4

and renamed it into 'Megaphone/Мегафон" for us to have a Golos-related meaningful name.

The first working version is already on GitHub: https://github.com/cryptomental/megaphone
It automatically connects to wss://node.golos.ws and contains Golos seed nodes in node.config.ini.

Installation:

For now pip from GitHub sources:

virtualenv -p python3 megaphone-env
. megaphone-env/bin/activate
pip install git+https://github.com/cryptomental/megaphone.git

A few examples that work out of the box:

blockchain.py

(megaphone-env)/sandbox$ cd megaphone/examples/
(megaphone-env) (master) /sandbox/megaphone/examples$ python blockchain.py 
Event: pow2
Time: 2016-10-18T11:03:03
Body: {'props': {'account_creation_fee': '3.000 GOLOS', 'sbd_interest_rate': 1000,...

account.py

(megaphone-env) (master) /sandbox/megaphone/examples$ python account.py 
['Голосуйте за Kiwi делегата!', 'Голос на бумага бумажник', 
'Обновить python-graphenelib 0.4.6, python-steemlib 0.2.4, conservatorio 0.3.4.', 
...

account_methods.py

(megaphone-env) (master) /sandbox/megaphone/examples$ python account_methods.py 
If you have been wondering about GBG/GOLOS feed if all 5000.000 BTC from ICO 
are invested...
Отчет делегата kiwi #2 - Неделя 44/2016
Better (more accurate) ICO Price Feed (для делегатов)

Next steps

Refactoring of a few modules, checking that all examples work and updating the tools itself is a lot of work and will keep me busy in the next weeks, therefore I will not post a lot. I will probably just give weekly updates on this. I additionally want to add a few tests, make the tool PEP8 compliant and add more documentation that can be later translated into Russian.

After that the tool will be published on Python Package Index.


I hope it all works like a Swiss watch until end of Golos ICO.
Feel free to translate into Russian if needed and drop me a link.

3
47.280 GOLOS
На Golos с October 2016
Комментарии (4)
Сортировать по:
Сначала старые