Skip to main content

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

Metadata

Release files for ethermine 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ethermine 0.2.0
File Size Uploaded
ethermine-0.2.0.tar.gz 3.8 kB Details

Release files / ethermine-0.2.0.tar.gz

Download URL ethermine-0.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
21ad16f2d6bae5b6011e6cc5944075f8fbd2e5a25489a19add2c2fd7ed3b5d07
BLAKE2b-256 checksum
How to use checksums
286d30e52b64339d4e73c78ba67e6b28c45b3e2baaded19434413ad84fc9a2f9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page