ethermine

Ethermine API python wrapper


Keywords
ethermine, etherium, eth
License
MIT
Install
pip install ethermine==0.2.0

Documentation

Python API wrapper for ehermine.org

Build Status

Access Etherium related mining data in the Ethermine mining pool.

All publicly available Ethermine API endpoints are wrapped. All endpoints return dicts containing the API data or None if response status code was not 200. Check the tests or API documentation to see all available fields.

Installation

Install via PIP:

pip install ethermine

Usage

from ethermine import Ethermine

ethermine = Ethermine()

Pool

/poolStats

stats = ethermine.pool_stats()

/blocks/history

history = ethermine.blocks_history()

/networkStats

stats = ethermine.network_stats()

/server/history

history = ethermine.server_history()

Miner

/miner/:miner/dashboard

dashboard = ethermine.miner_dashboard("address")

/miner/:miner/history

history = ethermine.miner_history("address")

/miner/:miner/payouts

payouts = ethermine.miner_payouts("address")

/miner/:miner/rounds

rounds = ethermine.miner_rounds("address")

/miner/:miner/settings

settings = ethermine.miner_settings("address")

/miner/:miner/currentStats

stats = ethermine.miner_current_stats("address")

Worker

/miner/:miner/workers

workers = ethermine.miner_workers("address")

/miner/:miner/worker/:worker/history

history = ethermine.miner_worker("address", "worker")

/miner/:miner/worker/:worker/currentStats

stats = ethermine.miner_worker_current_stats("address", "worker")

/miner/:miner/worker/:worker/monitor

monitors = ethermine.miner_worker_monitor("address", "worker")

Development

PR's are welcome - especially should the API change. Please also add tests - the tests should always represent the current state of the API including all fields.

Building Dist Package

To build a distributable package run:

python setup.py sdist