Skip to main content

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

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 Provenance Actions
ethermine-0.2.0.tar.gz 3.8 kB Without provenance Details for ethermine-0.2.0.tar.gz

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

Security for ethermine 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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