Skip to main content

Ethermine API wrapper

Project description

python-ethermine

What it is

An API Wrapper for the Ethermine API. Easily allows you to create a client and access the data for your mining operation

How to use it

from python_ethermine import EthermineClient

WORKER = "sanyi"
ETH_ADDRESS = "0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8"

client = EthermineClient()

# Miner Tests
dashboard = client.Miner.get_dashboard(address=ETH_ADDRESS)
history = client.Miner.get_history(address=ETH_ADDRESS)
payouts = client.Miner.get_payouts(address=ETH_ADDRESS)
rounds = client.Miner.get_rounds(address=ETH_ADDRESS)
settings = client.Miner.get_settings(address=ETH_ADDRESS)
statistics = client.Miner.get_statistics(address=ETH_ADDRESS)

# Worker tests
all_worker_stats = client.Worker.get_all_worker_stats(address=ETH_ADDRESS)
individual_worker_stats = client.Worker.get_individual_worker_stats(address=ETH_ADDRESS, worker=WORKER)
individual_historical_worker_stats = client.Worker.get_individual_historical_worker_stats(address=ETH_ADDRESS, worker=WORKER)

# Pool stats
basic_pool_stats = client.Pool.get_basic_pool_stats()
mined_blocks_stats = client.Pool.get_mined_blocks_stats()
network_statistics = client.Pool.get_network_statistics()
server_hashrate_stats = client.Pool.get_server_hashrate_stats()

The latest version

The current version of this program is written for Python 3.8

Licensing

Copyright 2021 Carl Argabright

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contact

carl.argbright@gmail.com

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

python_ethermine-0.0.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_ethermine-0.0.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file python_ethermine-0.0.2.tar.gz.

File metadata

  • Download URL: python_ethermine-0.0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for python_ethermine-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5ad89261a061af0ed19c2c456aa042d0b8dbf2ff8aab26e8327fb5303b3fdf48
MD5 c6887db9d971b42075701f025ea6c979
BLAKE2b-256 0bf0b4e092339318add45a14831d2676fdf3702a6160ae86a64cd44b79fa5ad0

See more details on using hashes here.

File details

Details for the file python_ethermine-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: python_ethermine-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for python_ethermine-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43af1810289ade1a9a3a1c1991d8c8f66de46e91feed1709e217e0c728d6c335
MD5 d685360ddeff9a4a475f7fb5a9af2c01
BLAKE2b-256 710987c32bf192311d19f84fbdd231e80b63edd5c6de5c7ddaaa552e2a55d8a3

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