MinerAPI
Python wrapper for the miners RPC API (cgminer/bfgminer, cpuminer-multi).
This is a fork of pycgminer by Thomas Sileo.
QuickStart
from minerapi import Cgminer
cgminer = Cgminer()
summary = cgminer.summary()
my_asic = cgminer.asc(0)
Documentation
-
class
minerapi.
Cgminer
(host='localhost', port=None)
Cgminer RPC API wrapper
-
command
(command, *args)
Send a command (a json encoded dict) and
receive the response (and decode it).
-
class
minerapi.
Bfgminer
(host='localhost', port=None)
-
class
minerapi.
Cpuminer
(host='localhost', port=None)
-
command
(command, *args)
Send a command (a json encoded dict) and
receive the response (and decode it).
-
json
(data)
Get raw json string from miner