Skip to main content

An async Python wrapper for the Mining Pool Hub REST API

Project description

miningpoolhub_py

CI Status

A Python wrapper for the Mining Pool Hub REST API

Installation

Install with pip:

pip install miningpoolhub_py

Usage

Universal Endpoints

Mining Pool Hub supports auto switching between coins. Obtain statistics for all coins with the following methods

from miningpoolhub_py import Pool

pool_instance = Pool('ethereum')
pool_instance.get_all_user_balances()
pool_instance.get_auto_switching_and_profits_statistics()
pool_instance.get_mining_profit_and_statistics()

Pool Selection

Mining Pool Hub has different base urls for each coin they offer. Create a new pool object for every coin you are interested in mining statistics for

from miningpoolhub_py import Pool
pool_instance = Pool('ethereum')
pool_instance.get_dashboard()

Authentication

Environment File

MPH_API_KEY=<api_key>

Pass API Key to Pool Constructor

from miningpoolhub_py import Pool
pool_instance = Pool('ethereum', '<api_key>')

References

Mining Pool Hub

Python API Wrapper & and CI/CD Pipeline

Contribute

Support

Open an issue

License

The project is licensed under the Apache 2 license

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

miningpoolhub_py-1.0.18.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

miningpoolhub_py-1.0.18-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file miningpoolhub_py-1.0.18.tar.gz.

File metadata

  • Download URL: miningpoolhub_py-1.0.18.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.8 Linux/5.4.0-1062-azure

File hashes

Hashes for miningpoolhub_py-1.0.18.tar.gz
Algorithm Hash digest
SHA256 15f810e2ed4f23e48bd17d4152d10ea18f9d2a49f2b55212d61d0798dde703fb
MD5 7dbd00230dadd1698db9fe7a23bcaabc
BLAKE2b-256 713009ec13ee02768432f20b4b3e9bf656a2d81a12f0b0e813891b9dfef80ca3

See more details on using hashes here.

File details

Details for the file miningpoolhub_py-1.0.18-py3-none-any.whl.

File metadata

  • Download URL: miningpoolhub_py-1.0.18-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.8 Linux/5.4.0-1062-azure

File hashes

Hashes for miningpoolhub_py-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 003f2035f913abf017eabbd6fa88b685c1eef4725ba69e55e67268d867c078d5
MD5 904f6fba722a1b7e0da50cd336e3951d
BLAKE2b-256 c1be58dc763009e4f07bbd2518b71b69fc534e9a359da2df8e94eac62011c533

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