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 details)

Uploaded Source

File details

Details for the file ethermine-0.2.0.tar.gz.

File metadata

  • Download URL: ethermine-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3

File hashes

Hashes for ethermine-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21ad16f2d6bae5b6011e6cc5944075f8fbd2e5a25489a19add2c2fd7ed3b5d07
MD5 7a73e4b4ff0d21de88af0881bd22bb82
BLAKE2b-256 286d30e52b64339d4e73c78ba67e6b28c45b3e2baaded19434413ad84fc9a2f9

See more details on using hashes here.

Supported by

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