Skip to content

Instantly share code, notes, and snippets.

View xeroc's full-sized avatar
🏠
building

Fabian Schuh xeroc

🏠
building
View GitHub Profile

Python Library and Applications

Preface

In the last couple months, I have been focusing on python development for the Steem blockchain due to it's quickly growing user and developer base. During that time, I have developed piston and the python-steem library which became very popular and are widely used.

import time
import json
import random
from grapheneapi.grapheneapi import GrapheneAPI
if __name__ == '__main__':
client = GrapheneAPI("localhost", 8092, "", "")
while True:
for i in range(0, random.randint(1, 100)):
print(i)
import threading
import time
import json
import random
from grapheneapi.grapheneapi import GrapheneAPI
def run(n=0):
client = GrapheneAPI("localhost", 8092, "", "")
while True:
{
"hex": "0100000002c2d8efe0b5e9714117780ed4553ad93d61d6d6d8ea7122dbaf0acd7a08bc643300000000fd1e010047304402201342c05e05c8747da53567abff67e547b3b7431aae85f93744886ad5d9a2605d0220632891265e880734d816839bcd61d005bff05c1465e81a9729d34c7b3f474ed30101ff01ff4ccf522102c3ef8aacb247b9118c4c89d6ab89b21e0e9af7083fe492d85a781f72b99ce6ee4c53ff0488b21e000000000000000000558fa681fb83797fe3ce416920ce79dbd6ffbc7d917a72def3832e5eb8efc349023015b9a24cf432805acaa7314a7cdb19ec59ae4d4fb21555315fc43c7f6f8543000000004c53ff0488b21e000000000000000000ff5da5c83cdc50a5fcfcf5fa511ecf29c14b38aab4aef81b30525208bd0d63c6039ad259be8385f8c88653016c787cada989d651b22eeada06c4e24e5b24b86dad0000000053aeffffffffdacc122c9b9fd343445e5ec3c2ccc3c2a6fad686f9c3d7eefb357e08e0a8058100000000fd1e010047304402205833d499709ff1cebd3480a2b83de40a68eb1465d3c6b9b2d06dfb4d75138f420220420dab8a2ffe535d2bcb32f4d02f6bedafbfa06bf29af98d89a9d67d2ca3e62e0101ff01ff4ccf522102c3ef8aacb247b9118c4c89d6ab89b21e0e9af7083fe492d85a781f72b99ce6ee4c53ff0488b21e000000000000000000558f
{"method": "call", "params": [1, "login", ["", ""]], "jsonrpc": "2.0", "id": 1}
{"method": "call", "params": [1, "database", []], "jsonrpc": "2.0", "id": 2}
{"method": "call", "params": [1, "history", []], "jsonrpc": "2.0", "id": 3}
{"method": "call", "params": [3, "get_account_history", ["1.2.282", "1.11.0", 1, "1.11.9999999999999"]], "jsonrpc": "2.0", "id": 7}
from pprint import pprint
from numpy import linspace
from uptick.decorators import unlock, online
from uptick.main import main
from bitshares.market import Market
from bitshares.account import Account
import click
@main.command()
from pprint import pprint
from numpy import linspace
from uptick.decorators import unlock, online
from uptick.main import main
from bitshares.market import Market
from bitshares.account import Account
import click
@main.command()
@xeroc
xeroc / -
Created April 21, 2017 10:02
{'expiration': '2017-04-21T10:02:49',
'extensions': [],
'operations': [[1,
{'amount_to_sell': {'amount': 10000, 'asset_id': '1.3.121'},
'expiration': '2017-04-28T10:02:18',
'extensions': [],
'fee': {'amount': 14676, 'asset_id': '1.3.0'},
'fill_or_kill': False,
'min_to_receive': {'amount': 50000, 'asset_id': '1.3.0'},
'seller': '1.2.282'}]],
from pprint import pprint
from numpy import linspace
from uptick.decorators import unlock, online
from uptick.main import main
from bitshares.market import Market
from bitshares.account import Account
import click
@main.command()
from pprint import pprint
from numpy import linspace
from uptick.decorators import unlock, online
from uptick.main import main
from bitshares.market import Market
from bitshares.account import Account
import click
@main.command()