Skip to main content

Ethermine API python wrapper

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ethermine-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page