An async Python wrapper for the Mining Pool Hub REST API
Project description
miningpoolhub_py
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
License
The project is licensed under the Apache 2 license
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for miningpoolhub_py-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f31f9ee8e34f509c9218fc9ec9ed5b9e8e57f5866bd5bce35f2e9287270adcfc |
|
MD5 | b6804d9ba3e46808ca043f12f758a129 |
|
BLAKE2b-256 | 7caaa9fd6022ce58cff9f3afb7d0b61a1f0aa3adec814f24c77c85459e5a85b9 |